Skip to content

Commit 8baaab4

Browse files
committed
fix: fix how to pass the GITHUB tocken as secret
1 parent 5a540e6 commit 8baaab4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
VERSION=$(npx semantic-release --no-ci --dry-run 2>&1 | tee semantic-output.log | grep -oP 'The next release version is \K[0-9]+\.[0-9]+\.[0-9]+' || true)
5555
5656
if [ -z "$VERSION" ]; then
57-
echo "Failed to extract VERSION from semantic-release output:"
57+
echo "Failed to extract VERSION from semantic-release output:"
5858
cat semantic-output.log
5959
exit 1
6060
fi
6161
62-
echo "Detected VERSION: $VERSION"
62+
echo "Detected VERSION: $VERSION"
6363
echo "VERSION=$VERSION" >> $GITHUB_ENV
6464
- name: Build Docker images
6565
run: |
@@ -71,7 +71,7 @@ jobs:
7171
docker buildx build --builder shell-runtime-builder --platform linux/arm64 \
7272
--build-arg HTTP_CLI_VERSION=$VERSION \
7373
--output type=registry --progress=plain \
74-
--secret id=github_token,env=GITHUB_TOKEN \
74+
--secret id=github_token,src=github_token \
7575
--cache-from type=local,src=/tmp/.buildx-cache \
7676
--cache-to type=local,dest=/tmp/.buildx-cache \
7777
-t $IMAGE:base-$VERSION \
@@ -81,7 +81,7 @@ jobs:
8181
docker buildx build --builder shell-runtime-builder --platform linux/arm64 \
8282
--build-arg HTTP_CLI_VERSION=$VERSION \
8383
--output type=registry --progress=plain \
84-
--secret id=github_token,env=GITHUB_TOKEN \
84+
--secret id=github_token,src=github_token \
8585
--cache-from type=local,src=/tmp/.buildx-cache \
8686
--cache-to type=local,dest=/tmp/.buildx-cache \
8787
-t $IMAGE:tiny-$VERSION \
@@ -91,7 +91,7 @@ jobs:
9191
docker buildx build --builder shell-runtime-builder --platform linux/arm64 \
9292
--build-arg HTTP_CLI_VERSION=$VERSION \
9393
--output type=registry --progress=plain \
94-
--secret id=github_token,env=GITHUB_TOKEN \
94+
--secret id=github_token,src=github_token \
9595
--cache-from type=local,src=/tmp/.buildx-cache \
9696
--cache-to type=local,dest=/tmp/.buildx-cache \
9797
-t $IMAGE:micro-$VERSION \
@@ -101,7 +101,7 @@ jobs:
101101
docker buildx build --builder shell-runtime-builder --platform linux/arm64 \
102102
--build-arg HTTP_CLI_VERSION=$VERSION \
103103
--output type=registry --progress=plain \
104-
--secret id=github_token,env=GITHUB_TOKEN \
104+
--secret id=github_token,src=github_token \
105105
--cache-from type=local,src=/tmp/.buildx-cache \
106106
--cache-to type=local,dest=/tmp/.buildx-cache \
107107
-t $IMAGE:full-$VERSION \

0 commit comments

Comments
 (0)