Fix CI #2
Workflow file for this run
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
--- | |
# Check if NuWro compiles correctly | |
name: Build CI | |
# The events that trigger the workflow | |
on: | |
pull_request: | |
branches: [ master ] | |
permissions: | |
contents: read | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false # KS: Prevents cancellation of remaining jobs if one fails | |
matrix: | |
include: | |
- os: alma9 | |
file: doc/docker/alma9/Dockerfile | |
tag: alma9latest | |
name: Build CI ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to GitHub Container Registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Build the Docker image | |
run: docker build . --file ${{ matrix.file }} --tag ghcr.io/nuwro/nuwro:${{ matrix.tag }} --build-arg NUWRO_VERSION=${{ github.head_ref }} |