mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-24 12:59:24 -05:00
Add git sha labels
This commit is contained in:
parent
dd3bdc7a4c
commit
9c1a449561
1 changed files with 3 additions and 1 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -32,8 +32,9 @@ jobs:
|
||||||
docker build . \
|
docker build . \
|
||||||
--pull=true \
|
--pull=true \
|
||||||
--file=Dockerfile \
|
--file=Dockerfile \
|
||||||
--tag="$IMAGE_NAME:debian" \
|
|
||||||
--tag="$IMAGE_NAME:latest" \
|
--tag="$IMAGE_NAME:latest" \
|
||||||
|
--tag="$IMAGE_NAME:debian" \
|
||||||
|
--tag="$IMAGE_NAME:debian-$GITHUB_SHA" \
|
||||||
--label="org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
|
--label="org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
|
||||||
--label="org.opencontainers.image.revision=$GITHUB_SHA" \
|
--label="org.opencontainers.image.revision=$GITHUB_SHA" \
|
||||||
--label="org.opencontainers.image.created=$(date --rfc-3339=seconds)"
|
--label="org.opencontainers.image.created=$(date --rfc-3339=seconds)"
|
||||||
|
@ -47,6 +48,7 @@ jobs:
|
||||||
--pull=true \
|
--pull=true \
|
||||||
--file=Dockerfile-alpine \
|
--file=Dockerfile-alpine \
|
||||||
--tag="$IMAGE_NAME:alpine" \
|
--tag="$IMAGE_NAME:alpine" \
|
||||||
|
--tag="$IMAGE_NAME:alpine-$GITHUB_SHA" \
|
||||||
--label="org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
|
--label="org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
|
||||||
--label="org.opencontainers.image.revision=$GITHUB_SHA" \
|
--label="org.opencontainers.image.revision=$GITHUB_SHA" \
|
||||||
--label="org.opencontainers.image.created=$(date --rfc-3339=seconds)"
|
--label="org.opencontainers.image.created=$(date --rfc-3339=seconds)"
|
||||||
|
|
Loading…
Reference in a new issue