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 7cf2561 commit e472ab5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist

6 changes: 0 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ jobs:
context: .
file: ./Dockerfile
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 @@ -62,9 +59,6 @@ jobs:
file: ./Dockerfile
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: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM registry.access.redhat.com/ubi9:latest

ARG CACHEBUST=1

USER root

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

COPY . .

RUN echo $CACHEBUST && yarn build
RUN yarn build

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

0 comments on commit e472ab5

Please sign in to comment.