Skip to content

Commit 9a0d475

Browse files
authored
try with annotations attribute in docker build push action input
1 parent 86ff3e0 commit 9a0d475

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

.github/workflows/ramius.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,20 @@ jobs:
9595
- name: build and push - github runner w/ coverity
9696
uses: docker/build-push-action@v6
9797
with:
98-
push: true
99-
context: Linux/coverity/docker
100-
tags: ghcr.io/${{ github.repository_owner }}/github-runner-coverity:${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }}
101-
build-args: |
102-
"ALMALINUX_VERSION=${{ fromJSON(needs.job_setup.outputs.sbom).almalinux.version }}"
103-
"COVERITY_VERSION=${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }}"
104-
"GHA_RUNNER_VERSION=${{ fromJSON(needs.job_setup.outputs.sbom).gha_runner.version }}"
105-
"GHA_RUNNER_DOWNLOAD=${{ fromJSON(needs.job_setup.outputs.sbom).gha_runner.download_url }}"
106-
secrets: |
107-
"GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}"
108-
outputs: |
109-
"type=image,name=target,annotation-index.org.opencontainers.image.description=Github Runner w/ Coverity v${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }},annotation-index.org.opencontainers.image.version=${{ fromJSON(needs.job_setup.outputs.sbom).almalinux.version }}-${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }}"
98+
annotations: |
99+
index:org.opencontainers.image.description=Github Runner w/ Coverity v${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }}
100+
index:org.opencontainers.image.version=${{ fromJSON(needs.job_setup.outputs.sbom).almalinux.version }}-${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }}
101+
102+
push: true
103+
context: Linux/coverity/docker
104+
tags: ghcr.io/${{ github.repository_owner }}/github-runner-coverity:${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }}
105+
build-args: |
106+
"ALMALINUX_VERSION=${{ fromJSON(needs.job_setup.outputs.sbom).almalinux.version }}"
107+
"COVERITY_VERSION=${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }}"
108+
"GHA_RUNNER_VERSION=${{ fromJSON(needs.job_setup.outputs.sbom).gha_runner.version }}"
109+
"GHA_RUNNER_DOWNLOAD=${{ fromJSON(needs.job_setup.outputs.sbom).gha_runner.download_url }}"
110+
secrets: |
111+
"GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}"
112+
113+
# outputs: |
114+
# "type=image,name=target,annotation-index.org.opencontainers.image.description=Github Runner w/ Coverity v${{ fromJSON(needs.job_setup.outputs.sbom).coverity.version }}

0 commit comments

Comments
 (0)