Skip to content

Commit

Permalink
Set image label in Dockerfile and not as command line argument (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
relthyg authored Apr 13, 2023
1 parent 1e2e0f9 commit f311c83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ VOLUME ["/cache"]

WORKDIR "/app"
ENTRYPOINT ["/entrypoint.sh"]

LABEL "org.opencontainers.image.source"="https://github.com/webfactory/docker-psalm"
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ if [ $# -eq 0 ]
psalm_version=$1
fi

docker buildx build --label org.opencontainers.image.source=https://github.com/webfactory/docker-psalm --build-arg PSALM_VERSION=$psalm_version --tag ghcr.io/webfactory/psalm:$tag --push .
docker buildx build --build-arg PSALM_VERSION=$psalm_version --tag ghcr.io/webfactory/psalm:$tag --push .

0 comments on commit f311c83

Please sign in to comment.