File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build Golden Base Image
33on :
44 push :
55 branches :
6- - ' chore/improve-ci '
6+ - ' v*-dev '
77 workflow_dispatch :
88 inputs :
99 release_tag :
4141 build-args : |
4242 DANGER_VERSION=${{ github.event.inputs.danger_version || 'v6.3.4-dev' }}
4343 tags : |
44- ghcr.io/${{ github.repository_owner }}/ds-base-env:${{ github.event.inputs.release_tag || 'v7.0.0-dev' }}
44+ ghcr.io/${{ github.repository_owner }}/ds-base-env:${{ github.event.inputs.release_tag || github.ref_name }}
Original file line number Diff line number Diff line change 2727 # This logic automatically selects the image tag
2828 container :
2929 image : >-
30- ghcr.io/${{ github.repository_owner }}/ds-base-env:${{
31- startsWith(github.ref_name, 'dev-') &&
32- replace(github.ref_name, 'dev-', 'v') ||
33- 'latest'
34- }}-dev
30+ ghcr.io/${{ github.repository_owner }}/ds-base-env:${{ env.IMAGE_TAG }}
3531 options : --user root -v /var/run/docker.sock:/var/run/docker.sock
3632
3733 env :
4137 PROJECT_NAME : dsBaseClient
4238 BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
4339 REPO_OWNER : ${{ github.repository_owner }}
40+ IMAGE_TAG : ${{ github.event.pull_request.base.ref || github.ref_name }}
4441 R_KEEP_PKG_SOURCE : yes
4542 GITHUB_TOKEN : ${{ github.token || 'placeholder-token' }}
4643
You can’t perform that action at this time.
0 commit comments