diff --git a/.github/workflows/docker-image_publish.yml b/.github/workflows/docker-image_publish.yml new file mode 100644 index 0000000..5d85190 --- /dev/null +++ b/.github/workflows/docker-image_publish.yml @@ -0,0 +1,21 @@ +name: Docker Image Publish +on: + push: + branches: ["master"] +jobs: + publish: + runs-on: ubuntu-latest + 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@3b5e8027fcad23fda98b2e3ac259d8d67585f671 + with: + context: . + file: ./Dockerfile + push: true + tags: mumo