From f56c0a0a0252cc1d71948f2832460f350706ee4a Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 22 Sep 2024 11:21:13 +0200 Subject: [PATCH] Create daily tag This prevents lingering layers and makes cleaning up in the future easier. --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b48205c..3cef987 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,11 @@ jobs: name: Build Image runs-on: ubuntu-latest steps: + - name: Get Time + id: time + uses: nanzm/get-time-action@v2.0 + with: + format: 'YYYY.MM.DD' - uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -27,5 +32,5 @@ jobs: uses: docker/build-push-action@v6 with: push: ${{ github.event_name != 'pull_request' }} - tags: ghcr.io/wyrihaximusnet/docker-github-action-runner:latest + tags: ghcr.io/wyrihaximusnet/docker-github-action-runner:latest,ghcr.io/wyrihaximusnet/docker-github-action-runner:${{ steps.time.outputs.time }} platforms: linux/amd64,linux/arm64