Skip to content

Commit d572d4e

Browse files
authored
fix(openchallenges): provide GHCR secrets to the release workflow (#2874)
1 parent 1acb675 commit d572d4e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- 'openchallenges/v*'
77

88
env:
9+
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
10+
DOCKER_USERNAME: ${{ github.actor }}
911
VERSION: ''
1012

1113
jobs:
@@ -21,7 +23,7 @@ jobs:
2123
id: extract_version
2224
run: |
2325
# Get the tag name and remove 'openchallenges/' prefix
24-
VERSION=${GITHUB_REF#refs/tags/openchallenges/}
26+
VERSION=${GITHUB_REF#refs/tags/openchallenges/v}
2527
echo "VERSION=${VERSION}" >> $GITHUB_ENV
2628
echo "Docker image tag will be: ${VERSION}"
2729

apps/openchallenges/apex/project.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222
"options": {
2323
"context": "{projectRoot}",
2424
"metadata": {
25-
"images": ["ghcr.io/sage-bionetworks/{projectName}"],
26-
"tags": ["type=edge,branch=main", "type=raw,value=local", "type=sha"]
25+
"images": ["ghcr.io/sage-bionetworks/{projectName}"]
2726
},
2827
"push": false
2928
},
3029
"configurations": {
31-
"local": {},
30+
"local": {
31+
"tags": ["type=edge,branch=main", "type=raw,value=local", "type=sha"]
32+
},
3233
"ci": {
3334
"cache-from": ["type=gha"],
3435
"cache-to": ["type=gha,mode=max"],

0 commit comments

Comments
 (0)