-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add image descriptions and source
More information in case the image is consumed via different sources than the official one. Signed-off-by: Jan Kiszka <[email protected]>
- Loading branch information
1 parent
9103719
commit 1767a24
Showing
4 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ inputs: | |
required: true | ||
deploy-token: | ||
required: true | ||
cache-key: | ||
image-name: | ||
required: true | ||
|
||
runs: | ||
|
@@ -42,13 +42,13 @@ runs: | |
uses: actions/cache@v4 | ||
with: | ||
path: var-cache-apt | ||
key: var-cache-apt-${{ env.DEBIAN_TAG }}-${{ inputs.cache-key }} | ||
key: var-cache-apt-${{ env.DEBIAN_TAG }}-${{ inputs.image-name }} | ||
- name: Cache var-lib-apt | ||
id: cache-var-lib-apt | ||
uses: actions/cache@v4 | ||
with: | ||
path: var-lib-apt | ||
key: var-lib-apt-${{ env.DEBIAN_TAG }}-${{ inputs.cache-key }} | ||
key: var-lib-apt-${{ env.DEBIAN_TAG }}-${{ inputs.image-name }} | ||
- name: Inject var-cache-apt into docker | ||
uses: reproducible-containers/[email protected] | ||
with: | ||
|
@@ -61,3 +61,23 @@ runs: | |
cache-source: var-lib-apt | ||
cache-target: /var/lib/apt | ||
skip-extraction: ${{ steps.cache-var-lib-apt.outputs.cache-hit }} | ||
- name: Define metadata | ||
run: | | ||
case ${{ inputs.image-name }} in | ||
kas) | ||
echo "IMAGE_DESCRIPTION=\"kas build environment for Yocto/OpenEmbedded projects\"" >> $GITHUB_ENV | ||
;; | ||
kas-isar) | ||
echo "IMAGE_DESCRIPTION=\"kas build environment for isar-based Debian projects\"" >> $GITHUB_ENV | ||
;; | ||
esac | ||
shell: bash | ||
- name: Extract metadata | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
annotations: | ||
org.opencontainers.image.description=${{ env.IMAGE_DESCRIPTION }} | ||
org.opencontainers.image.licenses="MIT and others" | ||
env: | ||
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters