浏览代码

github workflow: pass commit's hash as build arg `REVISION` to set image's label `org.opencontainers.image.revision`

https://github.com/fphammerle/docker-onion-service/commit/46ca6d70fb2d4570bfddac6b3f5e485183e72405
Fabian Peter Hammerle 1 年之前
父节点
当前提交
495b61ca3f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .github/workflows/container-image.yml

+ 2 - 0
.github/workflows/container-image.yml

@@ -22,6 +22,8 @@ jobs:
         platforms: |
           linux/amd64
           linux/arm/v7
+        # potential alternative: https://github.com/docker/metadata-action
+        build-args: REVISION=${{ github.sha }}
         # > $ skopeo copy --all oci-archive:oci-container-image.tar \
         # >     docker://quay.io/fphammerle/test:test
         # > [...]