File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 4646 file : container/Dockerfile
4747 push : true
4848 platforms : linux/amd64
49- build-args : |
50- GITHUB_TOKEN =${{ secrets.GITHUB_TOKEN }}
49+ secrets : |
50+ github_token =${{ secrets.GITHUB_TOKEN }}
5151 tags : ${{ steps.meta.outputs.image }}
Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ WORKDIR /workspace
88
99COPY . .
1010
11- ARG GITHUB_TOKEN WIKI_FILE
12- RUN <<EOF
11+ ARG WIKI_FILE
12+ RUN --mount=type=secret,id=github_token <<EOF
1313set -e
1414git config --global --add safe.directory /workspace
1515git log -1
16- export GITHUB_TOKEN="${GITHUB_TOKEN}"
16+ if [ -f /run/secrets/github_token ]; then
17+ export GITHUB_TOKEN="$(cat /run/secrets/github_token)"
18+ fi
1719export NODE_OPTIONS="--experimental-strip-types"
1820npm clean-install
1921node --run all
You can’t perform that action at this time.
0 commit comments