Skip to content

Commit

Permalink
cache busting
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Madigan <[email protected]>
  • Loading branch information
jasonmadigan committed Dec 3, 2024
1 parent 989696e commit 7cf2561
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
platforms: linux/amd64,linux/arm64
no-cache: true
push: true
build-args: |
CACHEBUST=${{ github.run_id }}
tags: |
${{ env.IMAGE_NAME }}:latest
${{ env.IMAGE_NAME }}:${{ github.sha }}
Expand All @@ -61,6 +63,8 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
no-cache: true
build-args: |
CACHEBUST=${{ github.run_id }}
tags: |
${{ env.IMAGE_NAME }}:${{ github.event.release.name }}
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM registry.access.redhat.com/ubi9:latest

ARG CACHEBUST=1

USER root

RUN dnf update -y && \
Expand All @@ -21,7 +23,7 @@ RUN yarn install --frozen-lockfile --ignore-optional

COPY . .

RUN yarn build
RUN echo $CACHEBUST && yarn build

COPY dist /usr/share/nginx/html
COPY entrypoint.sh /usr/share/nginx/html/entrypoint.sh
Expand Down

0 comments on commit 7cf2561

Please sign in to comment.