Skip to content

Commit 9408e5c

Browse files
committed
Updated build-images to use sha as base image tag, as latest may not always be current
1 parent 0fd1a1e commit 9408e5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build-images.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
tags: ${{ steps.meta-nbs.outputs.tags }}
7878
labels: ${{ steps.meta-nbs.outputs.labels }}
7979
build-args: |
80-
BASE_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/bluesky:latest
80+
BASE_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/bluesky:sha-${{ github.sha }}
8181
cache-from: type=gha
8282
cache-to: type=gha,mode=max
8383

@@ -102,7 +102,7 @@ jobs:
102102
tags: ${{ steps.meta-gui.outputs.tags }}
103103
labels: ${{ steps.meta-gui.outputs.labels }}
104104
build-args: |
105-
BASE_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nbs:latest
105+
BASE_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nbs:sha-${{ github.sha }}
106106
cache-from: type=gha
107107
cache-to: type=gha,mode=max
108108

@@ -127,6 +127,6 @@ jobs:
127127
tags: ${{ steps.meta-viewer.outputs.tags }}
128128
labels: ${{ steps.meta-viewer.outputs.labels }}
129129
build-args: |
130-
BASE_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nbs:latest
130+
BASE_IMAGE=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/nbs:sha-${{ github.sha }}
131131
cache-from: type=gha
132132
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)