From 10f1d657f35d8da5e0f132c7e0024ec377f9e02c Mon Sep 17 00:00:00 2001 From: yut23 Date: Fri, 3 Jan 2025 20:49:57 -0500 Subject: [PATCH] CI: add hash of Dockerfile and docker-build.yml to image version This will ensure the container gets rebuilt whenever I change anything in those files. --- .github/workflows/docker-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index f27fadf..38ca4ba 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -68,7 +68,7 @@ jobs: run: | gcc_versions=${{ inputs.gcc-versions }} llvm_versions=${{ inputs.llvm-versions }} - IMAGE_VERSION="ubuntu-${{ inputs.ubuntu-version }}-gcc-${gcc_versions/,/-}-llvm-${llvm_versions/,/-}" + IMAGE_VERSION="ubuntu-${{ inputs.ubuntu-version }}-gcc-${gcc_versions/,/-}-llvm-${llvm_versions/,/-}-${{ hashFiles('.github/workflows/Dockerfile', '.github/workflows/docker-build.yml') }}" echo "image-version=$IMAGE_VERSION" >> $GITHUB_OUTPUT if docker manifest inspect $REGISTRY/$IMAGE_NAME:$IMAGE_VERSION; then echo "in-registry=true" >> $GITHUB_OUTPUT