Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi arch OCI description fix #49

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions .github/workflows/ssc-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ jobs:
images: ${{ env.DOCKER_IMAGE_NAME }}
tags: type=match,pattern=ssc-(.*),group=1
sep-tags: ','
labels: | # https://github.com/opencontainers/image-spec/blob/main/annotations.md
maintainer="axoflow.io"
org.opencontainers.image.title="AxoSyslog Splunk Connector"
org.opencontainers.image.description="A cloud-native distribution of syslog-ng by Axoflow"
org.opencontainers.image.authors="Axoflow"
org.opencontainers.image.vendor="Axoflow"
org.opencontainers.image.licenses="GPL-3.0-only"
org.opencontainers.image.source="https://github.com/axoflow/axosyslog-docker"
org.opencontainers.image.documentation="https://axoflow.com/docs/axosyslog/docs/"
org.opencontainers.image.url="https://axoflow.io/"

- name: Build and push Docker image
uses: docker/build-push-action@v3
Expand All @@ -89,13 +99,6 @@ jobs:
build-args: |
SYSLOGNG_VERSION=${{ env.SYSLOG_NG_IMG_VERSION }}
VERSION=${{ needs.version.outputs.version }}
labels: | # https://github.com/opencontainers/image-spec/blob/main/annotations.md
maintainer="axoflow.io"
org.opencontainers.image.title="AxoSyslog Splunk Connector"
org.opencontainers.image.description="A cloud-native distribution of syslog-ng by Axoflow"
org.opencontainers.image.authors="Axoflow"
org.opencontainers.image.vendor="Axoflow"
org.opencontainers.image.licenses="GPL-3.0-only"
org.opencontainers.image.source="https://github.com/axoflow/axosyslog-docker"
org.opencontainers.image.documentation="https://axoflow.com/docs/axosyslog/docs/"
org.opencontainers.image.url="https://axoflow.io/"
# description should be here because it is a multi-arch image
# see docs: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#adding-a-description-to-multi-arch-images
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=${{ fromJSON(steps.tags.outputs.json).labels['org.opencontainers.image.description'] }}
3 changes: 3 additions & 0 deletions .github/workflows/syslog-ng-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ jobs:
platforms: ${{ env.PLATFORMS }}
push: true
tags: ${{ steps.tags.outputs.TAGS }}
# description should be here because it is a multi-arch image
# see docs: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#adding-a-description-to-multi-arch-images
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=${{ fromJSON(steps.stable-tags.outputs.json).labels['org.opencontainers.image.description'] }}
build-args: |
PKG_TYPE=${{ inputs.pkg-type }}
SNAPSHOT_VERSION=${{ inputs.snapshot-version }}
24 changes: 12 additions & 12 deletions syslog-ng/alpine.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@ FROM alpine:3.18 as apkbuilder
ARG PKG_TYPE=stable
ARG SNAPSHOT_VERSION

# https://github.com/opencontainers/image-spec/blob/main/annotations.md
LABEL maintainer="axoflow.io"
LABEL org.opencontainers.image.title="AxoSyslog"
LABEL org.opencontainers.image.description="A cloud-native distribution of syslog-ng by Axoflow"
LABEL org.opencontainers.image.authors="Axoflow"
LABEL org.opencontainers.image.vendor="Axoflow"
LABEL org.opencontainers.image.licenses="GPL-3.0-only"
LABEL org.opencontainers.image.source="https://github.com/axoflow/axosyslog-docker"
LABEL org.opencontainers.image.documentation="https://axoflow.com/docs/axosyslog/docs/"
LABEL org.opencontainers.image.url="https://axoflow.io/"

RUN apk add --update-cache \
alpine-conf \
alpine-sdk \
Expand Down Expand Up @@ -41,7 +30,18 @@ RUN mkdir packages \


FROM alpine:3.18
LABEL maintainer="László Várady <[email protected]>"

# https://github.com/opencontainers/image-spec/blob/main/annotations.md
LABEL maintainer="axoflow.io"
LABEL org.opencontainers.image.title="AxoSyslog"
LABEL org.opencontainers.image.description="A cloud-native distribution of syslog-ng by Axoflow"
LABEL org.opencontainers.image.authors="Axoflow"
LABEL org.opencontainers.image.vendor="Axoflow"
LABEL org.opencontainers.image.licenses="GPL-3.0-only"
LABEL org.opencontainers.image.source="https://github.com/axoflow/axosyslog-docker"
LABEL org.opencontainers.image.documentation="https://axoflow.com/docs/axosyslog/docs/"
LABEL org.opencontainers.image.url="https://axoflow.io/"

COPY --from=apkbuilder /home/builder/packages/ /
COPY --from=apkbuilder /home/builder/.abuild/*.pub /etc/apk/keys/

Expand Down