diff --git a/.github/workflows/docker-image_publish.yml b/.github/workflows/docker-image_publish.yml new file mode 100644 index 0000000..03924ff --- /dev/null +++ b/.github/workflows/docker-image_publish.yml @@ -0,0 +1,20 @@ +name: Docker Image Publish +on: + push: + branches: ["master"] +jobs: + publish: + runs-on: ubuntu-latest + environment: DockerHub + steps: + - uses: actions/checkout@v4 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + push: true + tags: mumo