Skip to content

Commit 5a540e6

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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,src=github_token \
74+
--secret id=github_token,env=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,src=github_token \
84+
--secret id=github_token,env=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,src=github_token \
94+
--secret id=github_token,env=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,src=github_token \
104+
--secret id=github_token,env=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)