|
14 | 14 | if: github.actor != 'dependabot[bot]' |
15 | 15 | runs-on: ubuntu-latest |
16 | 16 | outputs: |
17 | | - python-template-docker-tag: ${{ steps.python-template-docker-tag.outputs.python-template-docker-tag }} |
| 17 | + docker-tag: ${{ steps.docker-tag.outputs.docker-tag }} |
18 | 18 | env: |
19 | 19 | PYTHON_APP_ENVIRONMENT: development |
20 | 20 | steps: |
@@ -53,36 +53,36 @@ jobs: |
53 | 53 | uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 |
54 | 54 |
|
55 | 55 | - name: Set docker tag |
56 | | - id: python-template-docker-tag |
57 | | - run: echo "python-template-docker-tag=myregistry/python-template:${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT |
| 56 | + id: docker-tag |
| 57 | + run: echo "docker-tag=myregistry/python-template:${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT |
58 | 58 |
|
59 | 59 | - name: Build and push |
60 | 60 | uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 |
61 | 61 | with: |
62 | 62 | file: src/python_template/api/Dockerfile |
63 | | - tags: ${{ steps.python-template-docker-tag.outputs.python-template-docker-tag }} |
| 63 | + tags: ${{ steps.docker-tag.outputs.docker-tag }} |
64 | 64 | push: false |
65 | 65 |
|
66 | 66 | deploy-dev: |
67 | 67 | needs: continuous-integration |
68 | 68 | uses: ./.github/workflows/_deploy.yaml |
69 | 69 | with: |
70 | 70 | environment: dev |
71 | | - docker_tag: ${{ needs.continuous-integration.outputs.python-template-docker-tag }} |
| 71 | + docker_tag: ${{ needs.continuous-integration.outputs.docker-tag }} |
72 | 72 | secrets: inherit |
73 | 73 |
|
74 | 74 | deploy-stg: |
75 | 75 | needs: [continuous-integration, deploy-dev] |
76 | 76 | uses: ./.github/workflows/_deploy.yaml |
77 | 77 | with: |
78 | 78 | environment: stg |
79 | | - docker_tag: ${{ needs.continuous-integration.outputs.python-template-docker-tag }} |
| 79 | + docker_tag: ${{ needs.continuous-integration.outputs.docker-tag }} |
80 | 80 | secrets: inherit |
81 | 81 |
|
82 | 82 | deploy-pro: |
83 | 83 | needs: [continuous-integration, deploy-stg] |
84 | 84 | uses: ./.github/workflows/_deploy.yaml |
85 | 85 | with: |
86 | 86 | environment: pro |
87 | | - docker_tag: ${{ needs.continuous-integration.outputs.python-template-docker-tag }} |
| 87 | + docker_tag: ${{ needs.continuous-integration.outputs.docker-tag }} |
88 | 88 | secrets: inherit |
0 commit comments