mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
add labels to the docker image + pin the docker pipeline install version
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
e9105c180a
commit
9f57e17887
3 changed files with 21 additions and 1 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -83,7 +83,7 @@ jobs:
|
||||||
needs: [wait-for-checks]
|
needs: [wait-for-checks]
|
||||||
runs-on: macos-latest # Due to our code signing process, it's vital that we run our release steps on macOS.
|
runs-on: macos-latest # Due to our code signing process, it's vital that we run our release steps on macOS.
|
||||||
steps:
|
steps:
|
||||||
- uses: docker-practice/actions-setup-docker@master
|
- uses: docker-practice/actions-setup-docker@v1
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -101,3 +101,9 @@ dockers:
|
||||||
- "anchore/syft:{{ .Tag }}"
|
- "anchore/syft:{{ .Tag }}"
|
||||||
- "anchore/syft:v{{ .Major }}"
|
- "anchore/syft:v{{ .Major }}"
|
||||||
- "anchore/syft:v{{ .Major }}.{{ .Minor }}"
|
- "anchore/syft:v{{ .Major }}.{{ .Minor }}"
|
||||||
|
|
||||||
|
build_flag_templates:
|
||||||
|
- "--build-arg=BUILD_DATE={{.Date}}"
|
||||||
|
- "--build-arg=BUILD_VERSION={{.Version}}"
|
||||||
|
- "--build-arg=VCS_REF={{.FullCommit}}"
|
||||||
|
- "--build-arg=VCS_URL={{.GitURL}}"
|
||||||
|
|
14
Dockerfile
14
Dockerfile
|
@ -11,4 +11,18 @@ WORKDIR /tmp
|
||||||
|
|
||||||
COPY syft /
|
COPY syft /
|
||||||
|
|
||||||
|
ARG BUILD_DATE
|
||||||
|
ARG BUILD_VERSION
|
||||||
|
ARG VCS_REF
|
||||||
|
ARG VCS_URL
|
||||||
|
|
||||||
|
LABEL org.label-schema.schema-version="1.0"
|
||||||
|
LABEL org.label-schema.build-date=$BUILD_DATE
|
||||||
|
LABEL org.label-schema.name="syft"
|
||||||
|
LABEL org.label-schema.description="CLI tool and library for generating a Software Bill of Materials from container images and filesystems"
|
||||||
|
LABEL org.label-schema.vcs-url=$VCS_URL
|
||||||
|
LABEL org.label-schema.vcs-ref=$VCS_REF
|
||||||
|
LABEL org.label-schema.vendor="Anchore, Inc."
|
||||||
|
LABEL org.label-schema.version=$BUILD_VERSION
|
||||||
|
|
||||||
ENTRYPOINT ["/syft"]
|
ENTRYPOINT ["/syft"]
|
||||||
|
|
Loading…
Reference in a new issue