docs: add copyright headers #178
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
permissions: read-all | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
name: Build container images | |
jobs: | |
build: | |
name: Build ${{ matrix.tag }} | |
runs-on: self-hosted | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- tag: kriger/kriger | |
path: . | |
- tag: kriger/frontend | |
path: frontend | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
id: builder | |
with: | |
# See: https://github.com/docker/buildx/issues/298 | |
driver-opts: | | |
network=host | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: r.o99.no | |
username: ${{ secrets.REGISTRY_USER }} | |
password: ${{ secrets.REGISTRY_PASS }} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: ${{ matrix.path }} | |
file: ${{ matrix.path }}/Dockerfile | |
push: true | |
tags: r.o99.no/${{ matrix.tag }}:latest,r.o99.no/${{ matrix.tag }}:${{ github.run_number }} | |
cache-from: type=registry,ref=r.o99.no/${{ matrix.tag }}:buildcache | |
# See https://github.com/goharbor/harbor/pull/18105#issuecomment-1811951274 for the Harbor workaround | |
cache-to: type=registry,ref=r.o99.no/${{ matrix.tag }}:buildcache,mode=max,image-manifest=true,oci-mediatypes=true | |
builder: ${{ steps.builder.outputs.name }} | |
build_exploit_base: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- tag: kriger/exploit-base:python | |
path: data/base/python | |
- tag: kriger/exploit-base:python-slim | |
path: data/base/python-slim | |
name: Build exploit base ${{ matrix.tag }} | |
runs-on: self-hosted | |
needs: [ build ] | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
id: builder | |
with: | |
driver-opts: | | |
network=host | |
- name: Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: r.o99.no | |
username: ${{ secrets.REGISTRY_USER }} | |
password: ${{ secrets.REGISTRY_PASS }} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: ${{ matrix.path }} | |
file: ${{ matrix.path }}/Dockerfile | |
push: true | |
tags: r.o99.no/${{ matrix.tag }} | |
cache-from: type=registry,ref=r.o99.no/${{ matrix.tag }}-buildcache | |
# See https://github.com/goharbor/harbor/pull/18105#issuecomment-1811951274 for the Harbor workaround | |
cache-to: type=registry,ref=r.o99.no/${{ matrix.tag }}-buildcache,mode=max,image-manifest=true,oci-mediatypes=true | |
builder: ${{ steps.builder.outputs.name }} |