Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 84e1e5e

Browse files
committed
chore: #150 Add org.opencontainers labels on container image
Signed-off-by: Laurent Broudoux <[email protected]>
1 parent 9b9dc46 commit 84e1e5e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/build-verify.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
environment: Build
1313
steps:
14+
- name: Get current date
15+
id: date
16+
#run: echo "::set-output name=date::$(date +'%Y-%m-%dT%H:%M:%S')"
17+
run: echo "date=$(date +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
18+
1419
- name: Checkout Code
15-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
1621

1722
- name: Package container image for operator e2e tests
1823
run: |
@@ -71,4 +76,6 @@ jobs:
7176
--provenance=false \
7277
--build-arg TAG=$IMAGE_TAG \
7378
--file build/Dockerfile \
79+
--label "org.opencontainers.image.revision=${GITHUB_SHA}" \
80+
--label "org.opencontainers.image.created=${{ steps.date.outputs.date }}" \
7481
--tag=quay.io/microcks/microcks-ansible-operator:$IMAGE_TAG .

build/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
FROM quay.io/operator-framework/ansible-operator:v0.19.4
22

3+
# Some version information
4+
LABEL maintainer="Laurent Broudoux <[email protected]>" \
5+
org.opencontainers.image.authors="Laurent Broudoux <[email protected]>" \
6+
org.opencontainers.image.title="Microcks Ansible Operator" \
7+
org.opencontainers.image.description="Microcks is Open Source cloud-native native tool for API Mocking and Testing" \
8+
org.opencontainers.image.licenses="Apache-2.0" \
9+
org.opencontainers.image.documentation="https://github.com/microcks/microcks-ansible-operator" \
10+
io.artifacthub.package.readme-url="https://raw.githubusercontent.com/microcks/microcks-ansible-operator/master/README.md"
11+
312
USER root
413
RUN yum clean all && rm -rf /var/cache/yum/* && yum install -y openssl
514
USER 1001

0 commit comments

Comments
 (0)