Update fix-pull-request.yml #26
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: Main pipline Backend | |
| on: | |
| push: | |
| branches: | |
| - 'release/**' | |
| env: | |
| RUN_NUM: ${{ github.run_number }} | |
| jobs: | |
| docker: | |
| name: Build and push docker image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v4 | |
| - name: "Run docker build and doker push" | |
| run: echo "Tag for image ${GITHUB_REF##*/}.${RUN_NUM}" | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Extract metadata for Docker | |
| id: meta | |
| uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | |
| with: | |
| images: | | |
| victorycenterua/backend | |
| - name: Build and push Docker images | |
| id: push | |
| uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }}.${{ github.run_number }} | |
| labels: ${{ steps.meta.outputs.labels }} |