We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55c0b30 commit 67d7c6aCopy full SHA for 67d7c6a
1 file changed
.github/workflows/gradle-build.yml
@@ -33,9 +33,10 @@ jobs:
33
34
- name: Prepare Docker image for test
35
run: |
36
- tag=$(git branch --show-current | tr '/' '-')
37
- docker pull ghcr.io/aim42/hsc:${tag}
38
- docker tag ghcr.io/aim42/hsc:${tag} ghcr.io/aim42/hsc:v2
+ tag="${GITHUB_REF_NAME:=$(git branch --show-current)}"
+ tag="${tag/\//-}"
+ (docker images | egrep -q "ghcr.io/aim42/hsc\\s+${tag}\\s+") || docker pull "ghcr.io/aim42/hsc:${tag}"
39
+ docker tag "ghcr.io/aim42/hsc:${tag}" ghcr.io/aim42/hsc:v2
40
41
- name: Download Artifacts
42
uses: actions/download-artifact@v5
0 commit comments