diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml new file mode 100644 index 0000000..30cf87b --- /dev/null +++ b/.github/workflows/docker-build.yaml @@ -0,0 +1,24 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build: + env: + DOCKERIMAGE: playtechnique/playtechnique.io:${{ github.run_attempt }} + runs-on: ubuntu-latest + + steps: + - name: Log in to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PAT }} + - name: Build and Publish the Docker image + uses: docker/build-push-action@v3 + with: + push: true + tags: ${{ env.DOCKERIMAGE }}