fix(ci): add label 'org.opencontainers.image.created'
Lint Markdown files / markdown-lint (push) Successful in 4s
Auto release tagged / tag_on_change (push) Failing after 10s
Release latest / push-manifest (push) Has been cancelled
Release latest / sync-to-hub-docker-io (push) Has been cancelled
Release latest / push-arm64 (push) Has been cancelled
Release latest / push-amd64 (push) Has been cancelled

This commit is contained in:
2026-06-05 12:30:44 +02:00
parent a9d7e01167
commit d56f129569
4 changed files with 12 additions and 2 deletions
+2
View File
@@ -22,6 +22,7 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
docker buildx build \ docker buildx build \
--build-arg BUILD_DATE="$(date --rfc-3339 seconds)" \
--file Dockerfile \ --file Dockerfile \
--platform linux/arm64 \ --platform linux/arm64 \
--provenance false \ --provenance false \
@@ -46,6 +47,7 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
docker buildx build \ docker buildx build \
--build-arg BUILD_DATE="$(date --rfc-3339 seconds)" \
--file Dockerfile \ --file Dockerfile \
--platform linux/amd64 \ --platform linux/amd64 \
--provenance false \ --provenance false \
+2
View File
@@ -44,6 +44,7 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
docker buildx build \ docker buildx build \
--build-arg BUILD_DATE="$(date --rfc-3339 seconds)" \
--build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \ --build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
--file Dockerfile \ --file Dockerfile \
--platform linux/arm64 \ --platform linux/arm64 \
@@ -84,6 +85,7 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
docker buildx build \ docker buildx build \
--build-arg BUILD_DATE="$(date --rfc-3339 seconds)" \
--build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \ --build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
--file Dockerfile \ --file Dockerfile \
--platform linux/amd64 \ --platform linux/amd64 \
+7 -2
View File
@@ -19,8 +19,13 @@ RUN NAME=docker-compose-$(uname | tr [:upper:] [:lower:])-$(uname -m); \
FROM scratch FROM scratch
LABEL org.opencontainers.image.description="Define and run multi-container applications with Docker" \ ARG DC_VERSION=v5.1.4
io.artifacthub.package.readme-url="https://github.com/docker/compose" ARG BUILD_DATE
LABEL io.artifacthub.package.readme-url="https://github.com/docker/compose" \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.description="Define and run multi-container applications with Docker" \
org.opencontainers.image.version=${DC_VERSION}
COPY --from=download /tmp/docker-compose /usr/bin/docker-compose COPY --from=download /tmp/docker-compose /usr/bin/docker-compose
ENTRYPOINT [ "/usr/bin/docker-compose" ] ENTRYPOINT [ "/usr/bin/docker-compose" ]
+1
View File
@@ -18,6 +18,7 @@ DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IM
PHONY:=container-image/build PHONY:=container-image/build
container-image/build: container-image/build:
${CONTAINER_RUNTIME} build \ ${CONTAINER_RUNTIME} build \
--build-arg BUILD_DATE="$(shell date --rfc-3339 seconds)" \
--file Dockerfile \ --file Dockerfile \
--no-cache \ --no-cache \
--pull \ --pull \