File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 23
23
- name : Fetch latest FE commit SHA
24
24
id : fetch_commit_fe_sha
25
25
run : |
26
- echo "LATEST_RELEASE=$(curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" -H "Authorization: Bearer ${{ secrets.GH_CI_TOKEN }}" | grep '"zipball_url":' | cut -d '"' -f 4)" >> $GITHUB_ENV
26
+ echo "LATEST_RELEASE=$(curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" | grep '"zipball_url":' | cut -d '"' -f 4)" >> $GITHUB_ENV
27
27
- name : Test build on x86
28
28
id : docker_build
29
29
uses : docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v5
Original file line number Diff line number Diff line change @@ -34,11 +34,10 @@ WORKDIR /usr/src/
34
34
35
35
# To ensure we always download the latest release of the webapp, we use a build argument.
36
36
# This prevents the curl command from being cached by Docker.
37
+
37
38
ARG LATEST_RELEASE=LATEST
38
39
RUN echo "Latest FE release: $LATEST_RELEASE"
39
- RUN --mount=type=secret,id=gh_token \
40
- LATEST_RELEASE=${LATEST_RELEASE} \
41
- curl -L -H "Authorization: Bearer $(cat /run/secrets/gh_token)" -o main.zip ${LATEST_RELEASE}
40
+ RUN LATEST_RELEASE=${LATEST_RELEASE} curl -L -o main.zip ${LATEST_RELEASE}
42
41
43
42
# Extract the downloaded zip file
44
43
RUN unzip main.zip
You can’t perform that action at this time.
0 commit comments