-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into utf8-substring
- Loading branch information
Showing
27 changed files
with
893 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build and Push to Greenbone Registry | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
tags: ["v*"] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
building: | ||
runs-on: self-hosted-generic | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: greenbone/actions/is-latest-tag@v3 | ||
id: latest | ||
|
||
- name: Set container build options | ||
id: container-opts | ||
run: | | ||
if [[ "${{ github.ref_type }}" = 'tag' ]]; then | ||
echo "version=stable" >> $GITHUB_OUTPUT | ||
echo "gvm-libs-version=oldstable" >> $GITHUB_OUTPUT | ||
else | ||
echo "version=edge" >> $GITHUB_OUTPUT | ||
echo "gvm-libs-version=oldstable-edge" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Build and Push Container | ||
id: build-and-push | ||
uses: greenbone/actions/container-build-push-generic@v3 | ||
with: | ||
build-docker-file: .docker/prod.Dockerfile | ||
build-args: | | ||
VERSION=${{ steps.container-opts.outputs.version }} | ||
GVM_LIBS_VERSION=${{ steps.container-opts.outputs.gvm-libs-version }} | ||
IMAGE_REGISTRY=${{ vars.IMAGE_REGISTRY }} | ||
cosign-key: ${{ secrets.COSIGN_KEY_OPENSIGHT }} | ||
cosign-key-password: ${{ secrets.COSIGN_KEY_PASSWORD_OPENSIGHT }} | ||
cosign-tlog-upload: "false" | ||
image-url: community/gvmd | ||
image-labels: | | ||
org.opencontainers.image.vendor=Greenbone | ||
org.opencontainers.image.base.name=greenbone/gvm-libs | ||
image-tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=edge | ||
type=ref,event=pr | ||
type=raw,value=latest,enable=${{ steps.latest.outputs.is-latest-tag == 'true' }} | ||
type=raw,value=stable,enable=${{ steps.latest.outputs.is-latest-tag == 'true' }} | ||
registry: ${{ secrets.GREENBONE_REGISTRY }} | ||
registry-username: ${{ secrets.GREENBONE_REGISTRY_USER }} | ||
registry-password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.