File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 66 environment :
77 required : true
88 type : string
9+ docker_tag :
10+ required : true
11+ type : string
912
1013jobs :
1114 deploy :
1215 runs-on : ubuntu-22.04
1316 environment : ${{ inputs.environment }}
1417 steps :
15- - name : Checkout repository
16- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17-
18- - name : Install uv
19- uses : astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
20- with :
21- version : ${{ vars.UV_VERSION }}
22-
23- - name : Install Python packages
24- run : uv sync --locked --no-dev
18+ - name : Print docker tag
19+ run : echo "Docker tag:${{ inputs.docker_tag }}"
2520 shell : bash
Original file line number Diff line number Diff line change @@ -49,18 +49,23 @@ jobs:
4949 - name : Set up Docker Buildx
5050 uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5151
52+ - name : Set api docker tag
53+ id : api-docker-tag
54+ run : echo "api-docker-tag=myregistry/api:${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
55+
5256 - name : Build and push api
5357 uses : docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0c
5458 with :
5559 file : api/src/api/Dockerfile
56- tags : myregistry/api: ${{ github.event.pull_request.head.sha }}
60+ tags : ${{ steps.api-docker-tag.outputs.api-docker-tag }}
5761 push : false
5862
5963 deploy-api-dev :
6064 needs : continuous-integration
6165 uses : ./.github/workflows/_deploy_api.yaml
6266 with :
6367 environment : dev
68+ docker_tag : ${{ needs.continuous-integration.outputs.api-docker-tag }}
6469 secrets : inherit
6570
6671 deploy-transcriber-dev :
7580 uses : ./.github/workflows/_deploy_api.yaml
7681 with :
7782 environment : stg
83+ docker_tag : ${{ needs.continuous-integration.outputs.api-docker-tag }}
7884 secrets : inherit
7985
8086 deploy-transcriber-stg :
8995 uses : ./.github/workflows/_deploy_api.yaml
9096 with :
9197 environment : pro
98+ docker_tag : ${{ needs.continuous-integration.outputs.api-docker-tag }}
9299 secrets : inherit
93100
94101 deploy-transcriber-pro :
You can’t perform that action at this time.
0 commit comments