diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 96a2d71..915ab79 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,6 +43,7 @@ jobs: --progress plain \ --tag $IMAGE_ID:latest \ --build-arg VERSION="0.1.${{ github.run_number }}" \ + --label "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \ --cache-from=type=registry,ref=$IMAGE_ID:cache \ --cache-to=type=registry,ref=$IMAGE_ID:cache,mode=max @@ -63,8 +64,10 @@ jobs: --platform linux/arm64 \ --progress plain \ --tag $IMAGE_ID:latest \ + --tag $IMAGE_ID:0.1.${{ github.run_number }} \ --build-arg BINARY=${{ matrix.binary }} \ - --label "org.opencontainers.image.source=https://github.com/${{ github.repository }}" + --label "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \ + --label "org.opencontainers.image.version=0.1.${{ github.run_number }}" - name: Extract arm64 binary if: matrix.mode == 'binary' diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b1e8212..6134143 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -35,11 +35,13 @@ jobs: docker buildx build . --file bin/${{ matrix.binary }}/test.Dockerfile \ --load \ --tag $IMAGE_ID:latest \ + --label "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \ --cache-from=type=registry,ref=$IMAGE_ID:test-cache \ --cache-to=type=registry,ref=$IMAGE_ID:test-cache,mode=max docker buildx build . --file bin/${{ matrix.binary }}/Dockerfile \ --load \ --tag $IMAGE_ID:latest \ + --label "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \ --cache-from=type=registry,ref=$IMAGE_ID:cache \ --cache-to=type=registry,ref=$IMAGE_ID:cache,mode=max