chore(deps): update dependency eslint-plugin-prettier to v5.5.6 (#469) #424
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: Publish image to Dockerhub | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| branch_name: | |
| description: Branch to build from | |
| default: develop | |
| required: true | |
| jobs: | |
| push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| if: github.event_name == 'workflow_dispatch' | |
| with: | |
| ref: '${{ github.event.inputs.branch_name }}' | |
| - uses: actions/checkout@v6 | |
| if: github.event_name == 'push' | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v4 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Push image | |
| env: | |
| DOCKERHUB_ACCOUNT: ${{ secrets.DOCKERHUB_ACCOUNT }} | |
| DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPO }} | |
| run: | | |
| export VERSION=`git rev-parse --short=7 HEAD` | |
| echo "Publishing a Docker image with a tag $VERSION" | |
| docker compose build && docker compose push && unset VERSION |