Skip to content

Build Images from source #4

Build Images from source

Build Images from source #4

Workflow file for this run

# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright © 2025 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
# Matthias Kretz <[email protected]>
name: Build Images from source
on:
workflow_dispatch: # Allows manual trigger via GitHub UI
schedule:
- cron: '0 4 * * 1' # At 04:00 UTC every Monday
permissions:
contents: read
packages: write # Required to push to GHCR
jobs:
gcc15:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.gcc15
push: true
tags: ghcr.io/${{ github.repository }}/gcc15
gcc16:
needs: gcc15
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.gcc16
push: true
tags: ghcr.io/${{ github.repository }}/gcc16