workflows: switch container build runners back to ubuntu-latest
#40
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
# Build and push Linux builder container | |
name: Container - Linux | |
on: | |
push: | |
branches: [main] | |
paths: [.github/workflows/container-linux.yml, builder/linux/*] | |
pull_request: | |
branches: [main] | |
paths: [.github/workflows/container-linux.yml, builder/linux/*] | |
schedule: | |
- cron: "40 14 1 * *" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
packages: write | |
# Separate PRs can run concurrently; everything else has to queue | |
concurrency: container-linux-${{ github.event.number }} | |
env: | |
CONTAINER_IMAGE: ghcr.io/${{ github.repository_owner }}/linux-builder:latest | |
jobs: | |
container: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install qemu-user-static | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Build container | |
# Cross-build the arm64 container from amd64 for simplicity | |
run: | | |
podman build --manifest $CONTAINER_IMAGE \ | |
--platform "linux/amd64,linux/arm64" \ | |
builder/linux | |
- name: Push container | |
if: github.event_name != 'pull_request' | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | | |
podman login ghcr.io -u $ --password-stdin | |
podman manifest push $CONTAINER_IMAGE |