Skip to content

Commit 2eb94bc

Browse files
committed
Added fabm github workflow
1 parent 61f68b4 commit 2eb94bc

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/fabm.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-FileCopyrightText: 2025 Helmholtz-Zentrum hereon GmbH
2+
# SPDX-License-Identifier: CC0-1.0
3+
# SPDX-FileContributor: Carsten Lemmen <carsten.lemmen@hereon.de>
4+
#
5+
name: Build and Test FABM Docker
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
branches:
13+
- main
14+
15+
jobs:
16+
build-fabm-docker:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
packages: write
21+
steps:
22+
- name: Check out repository
23+
uses: actions/checkout@v4
24+
25+
- name: Log in to GitHub Container Registry
26+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
27+
28+
- name: Build and Push Docker Image
29+
run: |
30+
docker build -t ghcr.io/${{ github.repository }}/fabm -f .docker/Dockerfile-fabm .
31+
docker push ghcr.io/${{ github.repository }}/fabm
32+
33+
test-fabm-docker:
34+
runs-on: ubuntu-latest
35+
needs: build-fabm-docker
36+
steps:
37+
- name: Log in to GitHub Container Registry
38+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
39+
40+
- name: Pull and Test Docker Image
41+
run: |
42+
docker pull ghcr.io/${{ github.repository }}/fabm
43+
docker run ghcr.io/${{ github.repository }}/fabm gotm -v

0 commit comments

Comments
 (0)