From a27fa689007ac66108067c15b794f2712340b523 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Sat, 27 Apr 2024 22:02:36 +0300 Subject: [PATCH] Better image labels --- .github/workflows/image-release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/image-release.yml b/.github/workflows/image-release.yml index a2dbe39..495176d 100644 --- a/.github/workflows/image-release.yml +++ b/.github/workflows/image-release.yml @@ -12,10 +12,10 @@ jobs: pull-requests: write packages: write steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Prepare + id: prep + run: | + echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -53,6 +53,10 @@ jobs: tags: ghcr.io/butr/devcontainer:latest cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache + labels: | + org.opencontainers.image.source=${{ github.event.repository.html_url }} + org.opencontainers.image.created=${{ steps.prep.outputs.created }} + org.opencontainers.image.revision=${{ github.sha }} - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file