Skip to content

Commit

Permalink
feat: add metadata to docker image (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner authored Apr 30, 2024
1 parent 2ac9feb commit 61b0cda
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
shell: bash
build:
needs: metadata
needs: [check-version, metadata]
strategy:
matrix:
arch: [amd64, arm64]
Expand All @@ -90,13 +90,14 @@ jobs:
with:
image_name: ${{ needs.metadata.outputs.image_name }}
image_tags: ${{ steps.merge-tags.outputs.list }}
build_flags: --build-arg VERSION=${{ needs.check-version.outputs.version }}
dockerfile_path: Dockerfile
token: ${{ secrets.GITHUB_TOKEN }}

multi-arch:
runs-on: ubuntu-latest
name: Merge into a multi-arch image
needs: [ metadata, build ]
needs: [metadata, build]
steps:
- uses: aica-technology/.github/.github/actions/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Release Versions:

## Upcoming changes (in development)

- feat: add metadata to docker image (#188)
- chore: touch up workflows and documentation (#181)
- feat: update demos directory (#179)
- fix: update copy constructor to avoid warnings (#180)
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,9 @@ COPY --from=dependencies /tmp/deps /usr
COPY --from=install /tmp/cl /usr
COPY --from=python /tmp/python-usr /usr
COPY --from=python-stubs /tmp/python-usr /usr

ARG VERSION
LABEL org.opencontainers.image.title="AICA control-libraries"
LABEL org.opencontainers.image.description="AICA control libraries"
LABEL org.opencontainers.image.version="${VERSION}"
LABEL tech.aica.image.metadata='{"type":"lib"}'

0 comments on commit 61b0cda

Please sign in to comment.