diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..13d319f --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,28 @@ +# Reference: +# https://github.com/marketplace/actions/build-and-push-docker-images +name: docker + +on: + push: + branches: + - 'main' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_API_KEY }} + - + name: Build and push + uses: docker/build-push-action@v3 + with: + push: true + tags: evertras/cynomys:latest