Skip to content

Compatibility layer for EESSI version 2026.06 #196

Compatibility layer for EESSI version 2026.06

Compatibility layer for EESSI version 2026.06 #196

name: Build and publish EESSI Docker image for bootstrapping Gentoo Prefix
on:
push:
branches:
- main
paths:
- Dockerfile.bootstrap-prefix*
- bootstrap-prefix.sh
pull_request:
branches:
- main
paths:
- Dockerfile.bootstrap-prefix*
- bootstrap-prefix.sh
# Declare default permissions as read only.
permissions: read-all
jobs:
build_and_publish:
name: Build and publish image
runs-on: ubuntu-24.04-arm
permissions:
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up QEMU
uses: docker/setup-qemu-action@4574d27a4764455b42196d70a065bc6853246a25 # v3.4.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f7ce87c1d6bead3e36075b2ce75da1f6cc28aaca # v3.9.0
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # v2.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Convert and store repository owner in lowercase
run: |
echo "REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Build and push to GitHub Packages
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0
with:
tags: ghcr.io/${{ env.REPOSITORY_OWNER }}/bootstrap-prefix:debian-11
file: Dockerfile.bootstrap-prefix-debian-11
platforms: linux/amd64, linux/arm64
push: ${{ github.event_name != 'pull_request' }}
- name: Build and push to GitHub Packages
uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5 # v3.2.0
with:
tags: ghcr.io/${{ env.REPOSITORY_OWNER }}/bootstrap-prefix:debian-13
file: Dockerfile.bootstrap-prefix-debian-13
platforms: linux/amd64, linux/arm64, linux/riscv64
push: ${{ github.event_name != 'pull_request' }}