Skip to content

Added flang to build matrix #18

Added flang to build matrix

Added flang to build matrix #18

Workflow file for this run

# SPDX-FileCopyrightText: 2025 Helmholtz-Zentrum hereon GmbH
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileContributor: Carsten Lemmen <carsten.lemmen@hereon.de>
#
name: Build and Test FABM Docker
on:
push:
branches:
- main
- gmp
pull_request:
branches:
- main
jobs:
build-fabm-docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Build and Push Docker Image
run: |
docker build -t ghcr.io/${{ github.repository }}/fabm -f .docker/Dockerfile-fabm .
docker push ghcr.io/${{ github.repository }}/fabm
test-fabm-docker:
runs-on: ubuntu-latest
needs: build-fabm-docker
steps:
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
- name: Pull and Test Docker Image
run: |
docker pull ghcr.io/${{ github.repository }}/fabm
docker run ghcr.io/${{ github.repository }}/fabm gotm -v