Skip to content

[cd] Add matrix to build core and env containers #1

[cd] Add matrix to build core and env containers

[cd] Add matrix to build core and env containers #1

Workflow file for this run

name: "[CD] Build and push containers"
on:
push:
branches: [master, inginious-0.8]
release:
types: [published]
workflow_dispatch:
jobs:
containers_build_and_push:
strategy:
fail-fast: false
matrix:
container_build: [ {directory: base-containers, container_type: env}, {directory: deploy, container_type: core} ]
uses: INGInious/.github/.github/workflows/containers.yml@d358002bb0f1476eebe02bc6ff4806461407d23a
with:
working-directory: ${{ matrix.container_build.directory }}
context-path: context.yml
compose-path: compose.yml
registry: ghcr.io
container_type: ${{ matrix.container_build.container_type }}
version: ${{ github.event_name == 'push' && github.ref_name || github.event.release.tag_name }}
runner: "ubuntu-latest"
secrets:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}