mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Add opencontainers labels to docker images
This commit is contained in:
6
.github/workflows/docker-publish-latest.yml
vendored
6
.github/workflows/docker-publish-latest.yml
vendored
@@ -33,6 +33,8 @@ jobs:
|
||||
run: |
|
||||
set -eu
|
||||
|
||||
echo "FIXED_TAG=$(echo ${{ github.ref }} | cut -d '/' -f 3)" >> "$GITHUB_ENV"
|
||||
echo "DATE_ISO8601=$(date --iso-8601=seconds --utc)" >> "$GITHUB_ENV"
|
||||
echo "GHCR_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
|
||||
echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
|
||||
|
||||
@@ -42,6 +44,10 @@ jobs:
|
||||
file: Dockerfile.Service
|
||||
platforms: linux/amd64,linux/arm,linux/arm64
|
||||
build-args: STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
|
||||
labels: |
|
||||
org.opencontainers.image.created=${{ env.DATE_ISO8601 }}
|
||||
org.opencontainers.image.version=${{ env.FIXED_TAG }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
tags: |
|
||||
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }}
|
||||
${{ env.DH_REPOSITORY }}:${{ env.TAG }}
|
||||
|
||||
5
.github/workflows/docker-publish-master.yml
vendored
5
.github/workflows/docker-publish-master.yml
vendored
@@ -39,6 +39,7 @@ jobs:
|
||||
run: |
|
||||
set -eu
|
||||
|
||||
echo "DATE_ISO8601=$(date --iso-8601=seconds --utc)" >> "$GITHUB_ENV"
|
||||
echo "GHCR_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
|
||||
echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
|
||||
|
||||
@@ -47,6 +48,10 @@ jobs:
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm,linux/arm64
|
||||
build-args: STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
|
||||
labels: |
|
||||
org.opencontainers.image.created=${{ env.DATE_ISO8601 }}
|
||||
org.opencontainers.image.version=${{ github.sha }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
tags: |
|
||||
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }}
|
||||
${{ env.DH_REPOSITORY }}:${{ env.TAG }}
|
||||
|
||||
@@ -35,6 +35,7 @@ jobs:
|
||||
set -eu
|
||||
|
||||
echo "FIXED_TAG=$(echo ${{ github.ref }} | cut -d '/' -f 3)" >> "$GITHUB_ENV"
|
||||
echo "DATE_ISO8601=$(date --iso-8601=seconds --utc)" >> "$GITHUB_ENV"
|
||||
echo "GHCR_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
|
||||
echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
|
||||
|
||||
@@ -43,6 +44,10 @@ jobs:
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm,linux/arm64
|
||||
build-args: STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
|
||||
labels: |
|
||||
org.opencontainers.image.created=${{ env.DATE_ISO8601 }}
|
||||
org.opencontainers.image.version=${{ env.FIXED_TAG }}
|
||||
org.opencontainers.image.revision=${{ github.sha }}
|
||||
tags: |
|
||||
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }}
|
||||
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.FIXED_TAG }}
|
||||
|
||||
Reference in New Issue
Block a user