Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Build and Push to DockerHub | |
| env: | |
| DOCKER_CLI_EXPERIMENTAL: enabled | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| push: | |
| runs-on: ubuntu-latest | |
| name: Build and push graphmindset image | |
| steps: | |
| - name: Check out from Git | |
| uses: actions/checkout@v4 | |
| - name: Set release tag | |
| run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Build and push | |
| run: | | |
| docker build --no-cache -t "${{ secrets.DOCKER_HUB_USER }}/graphmindset:${{ env.RELEASE_TAG }}" -t "${{ secrets.DOCKER_HUB_USER }}/graphmindset:latest" . | |
| docker push "${{ secrets.DOCKER_HUB_USER }}/graphmindset:${{ env.RELEASE_TAG }}" | |
| docker push "${{ secrets.DOCKER_HUB_USER }}/graphmindset:latest" |