Skip to content

Commit 4d8dd3c

Browse files
authored
Merge pull request #496 from stacklok/fix-ci
Fix CI by removing the need for a secret
2 parents acbf2c9 + ab5a7ce commit 4d8dd3c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/image-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Fetch latest FE commit SHA
2424
id: fetch_commit_fe_sha
2525
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
2727
- name: Test build on x86
2828
id: docker_build
2929
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v5

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ WORKDIR /usr/src/
3434

3535
# To ensure we always download the latest release of the webapp, we use a build argument.
3636
# This prevents the curl command from being cached by Docker.
37+
3738
ARG LATEST_RELEASE=LATEST
3839
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}
4241

4342
# Extract the downloaded zip file
4443
RUN unzip main.zip

0 commit comments

Comments
 (0)