Skip to content

Commit

Permalink
Fix: Build container image release from stable openvas-scanner image
Browse files Browse the repository at this point in the history
When creating releases the container image should be build from the
lastest stable openvas-scanner image. Otherwise the edge image should be
used to check if the image still builds.
  • Loading branch information
bjoernricks authored and nichtsfrei committed Jul 10, 2023
1 parent 96bfdac commit b3420d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ jobs:
uses: actions/checkout@v3
- uses: greenbone/actions/is-latest-tag@v2
id: latest
- name: Set container build options
id: container-opts
run: |
if [[ "${{ github.ref_type }}" = 'tag' ]]; then
echo "version=stable" >> $GITHUB_OUTPUT
else
echo "version=edge" >> $GITHUB_OUTPUT
fi
- name: 'Setup meta information (IS_LATEST_TAG: ${{ steps.latest.outputs.is-latest-tag }} )'
id: meta
uses: docker/metadata-action@v4
Expand Down Expand Up @@ -59,3 +67,5 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ steps.container-opts.outputs.version }}

0 comments on commit b3420d7

Please sign in to comment.