Skip to content

Commit acb95de

Browse files
committed
fix errors in naming
1 parent 061608c commit acb95de

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/build-env.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Golden Base Image
33
on:
44
push:
55
branches:
6-
- 'chore/improve-ci'
6+
- 'v*-dev'
77
workflow_dispatch:
88
inputs:
99
release_tag:
@@ -41,4 +41,4 @@ jobs:
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 }}

.github/workflows/dsBaseClient_test_suite.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ jobs:
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:
@@ -41,6 +37,7 @@ jobs:
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

0 commit comments

Comments
 (0)