Fix Docker build tag issue in GitHub Actions workflow
Browse filesThe 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
.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=
|
| 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
|