Skip to content

Commit

Permalink
CI: Use ghcr.io for gvmd-build image
Browse files Browse the repository at this point in the history
The gvmd-build Docker image is now pushed to and pulled from ghcr.io.

This is done because the image is meant to be used only in the
gvmd building and testing workflows.
  • Loading branch information
timopollmeier authored and bjoernricks committed Mar 6, 2024
1 parent 19d6be2 commit 90ea769
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .docker/prod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG VERSION=edge
ARG GVM_LIBS_VERSION=oldstable
ARG DEBIAN_FRONTEND=noninteractive

FROM greenbone/gvmd-build:${VERSION} as builder
FROM ghcr.io/greenbone/gvmd-build:${VERSION} as builder

COPY . /source
WORKDIR /source
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
scan-build:
name: scan-build (clang static analyzer)
runs-on: ubuntu-latest
container: greenbone/gvmd-build:stable
container: gchr.io/greenbone/gvmd-build:stable
steps:
- name: Check out gvmd
uses: actions/checkout@v4
Expand All @@ -46,7 +46,7 @@ jobs:
test-units:
name: Unit Tests
runs-on: ubuntu-latest
container: greenbone/gvmd-build:stable
container: gchr.io/greenbone/gvmd-build:stable
steps:
- name: Check out gvmd
uses: actions/checkout@v4
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}-build
images: gchr.io/${{ github.repository }}-build
labels: |
org.opencontainers.image.vendor=Greenbone
org.opencontainers.image.base.name=greenbone/gvm-libs
Expand All @@ -40,11 +40,12 @@ jobs:
else
echo "gvm-libs-version=oldstable-edge" >> $GITHUB_OUTPUT
fi
- name: Login to DockerHub
- name: Login to GitHub Docker registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ secrets.GREENBONE_BOT }}
password: ${{ secrets.GREENBONE_BOT_PACKAGES_WRITE_TOKEN }}
- run: echo "Build and push ${{ steps.meta.outputs.tags }}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build-gmp-doc:
name: Build GMP documentation
runs-on: ubuntu-latest
container: greenbone/gvmd-build:stable
container: gchr.io/greenbone/gvmd-build:stable
steps:
- name: Check out gvmd
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis-c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
actions: read
contents: read
security-events: write
container: greenbone/gvmd-build:stable
container: gchr.io/greenbone/gvmd-build:stable

strategy:
fail-fast: false
Expand Down

0 comments on commit 90ea769

Please sign in to comment.