Skip to content

Merge pull request #53 from nathanchance/qemu-system-sparc #190

Merge pull request #53 from nathanchance/qemu-system-sparc

Merge pull request #53 from nathanchance/qemu-system-sparc #190

Workflow file for this run

name: Build container images
on:
push:
paths:
- .github/workflows/docker.yml
- '*/Dockerfile'
pull_request:
paths:
- .github/workflows/docker.yml
- '*/Dockerfile'
schedule:
- cron: 0 0 * * 0
workflow_dispatch: null
jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image: [qemu]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
if: ${{ github.repository_owner == 'ClangBuiltLinux' && github.event_name != 'pull_request' && github.ref_name == 'main' }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set variables
id: variables
run: echo "date=$(date +'%Y-%m-%d-%H-%M')" >> $GITHUB_OUTPUT
- name: Build
uses: docker/build-push-action@v3
with:
context: ./${{ matrix.image }}
file: ./${{ matrix.image }}/Dockerfile
platforms: linux/amd64
push: ${{ github.repository_owner == 'ClangBuiltLinux' && github.event_name != 'pull_request' && github.ref_name == 'main' }}
tags: |
ghcr.io/clangbuiltlinux/${{ matrix.image }}:${{ steps.variables.outputs.date }}
ghcr.io/clangbuiltlinux/${{ matrix.image }}:latest