Skip to content

Commit

Permalink
Use GitHub Actions variable for own registry and use gvm-libs stable …
Browse files Browse the repository at this point in the history
…as base

Always use gvm-libs stable as base for the workflows and use the GitHub
Action variable to address the container image.
  • Loading branch information
bjoernricks committed Jan 23, 2025
1 parent 415fd13 commit 4a00a6d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ jobs:
scan-build:
name: scan-build (clang static analyzer)
runs-on: ubuntu-latest
container: ${{ vars.IMAGE_REGISTRY }}/greenbone/gvmd-build:stable
container: ${{ vars.SELF_HOSTED_REGISTRY }}/community/gvm-libs:stable
steps:
- name: Check out gvmd
uses: actions/checkout@v4
- name: Install clang tools
run: |
apt update
apt install --no-install-recommends -y clang clang-format clang-tools
rm -rf /var/lib/apt/lists/*
- name: Install build dependencies
run: sh .github/install-dependencies.sh .github/build-dependencies.list
- name: Configure scan build
run: |
scan-build cmake -B build -DCMAKE_BUILD_TYPE=Debug
Expand All @@ -52,7 +53,7 @@ jobs:
- stable
- oldstable
- testing
container: registry.community.greenbone.net/community/gvm-libs:${{ matrix.container }}
container: ${{ vars.SELF_HOSTED_REGISTRY }}/community/gvm-libs:${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
Expand All @@ -66,13 +67,14 @@ jobs:
test-units:
name: Unit Tests
runs-on: ubuntu-latest
container: registry.community.greenbone.net/community/gvm-libs:stable
container: ${{ vars.SELF_HOSTED_REGISTRY }}/community/gvm-libs:stable
steps:
- name: Install git for Codecov uploader
run: |
apt update
apt install --no-install-recommends -y ca-certificates git
rm -rf /var/lib/apt/lists/*
- name: Install build dependencies
run: sh .github/install-dependencies.sh .github/build-dependencies.list
- name: Check out gvmd
uses: actions/checkout@v4
- name: Set git safe.directory
Expand Down

0 comments on commit 4a00a6d

Please sign in to comment.