File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 5454 uses : docker/build-push-action@v5
5555 with :
5656 context : release
57+ secrets : |
58+ "github_token=${{ secrets.GITHUB_TOKEN }}"
5759 file : release/codon/Dockerfile
5860 push : true
5961 load : true
Original file line number Diff line number Diff line change @@ -21,5 +21,17 @@ RUN cd codon && cmake -S . -B build \
2121RUN cd codon && cmake --build build --config Release
2222RUN cd codon && cmake --install build --prefix=install
2323
24+ # install gh cli
25+ RUN (type -p wget >/dev/null || (apt update && apt install wget -y)) \
26+ && mkdir -p -m 755 /etc/apt/keyrings \
27+ && out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
28+ && cat $out | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
29+ && chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
30+ && mkdir -p -m 755 /etc/apt/sources.list.d \
31+ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
32+ && apt update \
33+ && apt install gh -y
34+
2435COPY codon/pack.sh pack.sh
25- RUN chmod +x pack.sh && ./pack.sh
36+ RUN --mount=type=secret,id=github_token GH_TOKEN=$(cat /run/secrets/github_token) chmod +x pack.sh && ./pack.sh
37+
Original file line number Diff line number Diff line change @@ -11,4 +11,6 @@ cp llvm-project/install/bin/llvm-objcopy release/armembeddon/bin/llvm-objcopy
1111cp codon/install/bin/codon release/armembeddon/bin/codon
1212cp -r codon/install/lib/codon/ release/armembeddon/lib/
1313
14- tar cvzf armembeddon.tar.gz -C release armembeddon
14+ tar cvzf armembeddon.tar.gz -C release armembeddon
15+
16+ gh --version && gh auth status
You can’t perform that action at this time.
0 commit comments