.github/workflows: Build the Arch Linux image for pull requests

... when there are changes in the 'images/arch' directory or in the
GitHub workflow itself.

https://github.com/containers/toolbox/pull/1308
This commit is contained in:
Debarshi Ray 2023-06-09 12:24:38 +02:00
parent a4e5861ae5
commit 33815da389

31
.github/workflows/arch-images-pr.yaml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Build the arch-toolbox image for PRs
on:
pull_request:
branches:
- main
paths:
- images/arch/**
- .github/workflows/arch-images-pr.yaml
jobs:
build-and-push-images:
name: Build the arch-toolbox image for PRs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build the arch-toolbox image
uses: docker/build-push-action@v3
with:
context: images/arch
file: images/arch/Containerfile
platforms: linux/amd64
push: false
no-cache: true
tags: quay.io/toolbx/arch-toolbox:latest