bozdoz / docker-wordpress-initialize

Initialize WordPress site in Docker with WP-CLI and an install script
https://hub.docker.com/r/bozdoz/wordpress-initialize
MIT License
8 stars 6 forks source link

Figure out github workflow to push to docker #2

Open bozdoz opened 1 year ago

bozdoz commented 1 year ago
docker build -t cli .
docker tag cli bozdoz/wordpress-initialize:latest
docker tag cli bozdoz/wordpress-initialize:1.2.3
docker push bozdoz/wordpress-initialize:latest
docker push bozdoz/wordpress-initialize:1.2.3

Need to add an access token here to github secrets, at minimum: https://hub.docker.com/settings/security

bozdoz commented 1 year ago
 -     name: Login to Docker Hub
        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKER_HUB_USERNAME }}
          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
bozdoz commented 1 year ago

https://github.com/bozdoz/docker-push