Skip to content

Build only on all branches #10

Build only on all branches

Build only on all branches #10

Workflow file for this run

name: Build
on:
push:
workflow_dispatch:
env:
IMAGE_REGISTRY: ghcr.io
IMAGE_REPOSITORY: minbzk/logboek-dataverwerkingen-demo
jobs:
build-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
app:
- munera
- currus
- lamina
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./apps/${{ matrix.app }}
push: ${{ github.ref_name == github.event.repository.default_branch }}
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPOSITORY }}/${{ matrix.app }}:latest