raylim commited on
Commit
48eddb1
·
unverified ·
1 Parent(s): bf57b9b

Fix Docker build tag issue in GitHub Actions workflow

Browse files

The previous tag generation configuration was producing invalid Docker tags
that start with a dash, causing build failures. Changed from using
{{branch}}- prefix to sha- prefix to ensure all tags are properly formatted
and valid for Docker.

Fixes the error: ERROR: failed to build: invalid tag "ghcr.io/pathology-data-mining/mosaic:-6f773e0": invalid reference format

Files changed (1) hide show
  1. .github/workflows/docker.yml +1 -1
.github/workflows/docker.yml CHANGED
@@ -61,7 +61,7 @@ jobs:
61
  type=ref,event=pr
62
  type=semver,pattern={{version}}
63
  type=semver,pattern={{major}}.{{minor}}
64
- type=sha,prefix={{branch}}-
65
 
66
  - name: Extract metadata for Docker Hub
67
  id: meta-dockerhub
 
61
  type=ref,event=pr
62
  type=semver,pattern={{version}}
63
  type=semver,pattern={{major}}.{{minor}}
64
+ type=sha,prefix=sha-
65
 
66
  - name: Extract metadata for Docker Hub
67
  id: meta-dockerhub