Skip to content

Commit

Permalink
Generate buildroot image tag dynamically
Browse files Browse the repository at this point in the history
The buildroot tag should always be associated to the date it was created
rather than the date the review is submitted.
  • Loading branch information
dbnicholson committed Sep 12, 2024
1 parent 2e17040 commit 9b6c789
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/buildroot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b6c789

Please sign in to comment.