From 9b6c78974d82b6fa613ba4613f1f1ac6085688c9 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Thu, 12 Sep 2024 08:29:43 -0600 Subject: [PATCH] Generate buildroot image tag dynamically The buildroot tag should always be associated to the date it was created rather than the date the review is submitted. --- .github/workflows/buildroot.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/buildroot.yml b/.github/workflows/buildroot.yml index 0a0db57a..76dd99ee 100644 --- a/.github/workflows/buildroot.yml +++ b/.github/workflows/buildroot.yml @@ -15,11 +15,13 @@ jobs: env: IMAGE_REPO: ghcr.io/${{ github.repository_owner }}/shim-review-buildroot - IMAGE_TAG: endless-shim-x64-20240822 steps: - name: Checkout uses: actions/checkout@v4 + - name: Generate image tag name + run: | + echo "IMAGE_TAG=endless-shim-x64-$(date -u +%Y%m%d)" >> "$GITHUB_ENV" - name: Build image run: docker build -f Dockerfile-buildroot -t "$IMAGE_REPO:$IMAGE_TAG" . - name: Registry login