Skip to content

Commit 4aac4b0

Browse files
committed
.github/workflows: Publish the Arch Linux image at quay.io/toolbx/...
Until now, the Arch Linux image was being published at quay.io/toolbx-images/archlinux-toolbox:latest. This renames the image to arch-toolbox [1] to match the os-release(5) ID on Arch, and changes the location to quay.io/toolbx/arch-toolbox:latest. Build and push when there are changes in the 'images/arch' directory or in the GitHub workflow itself, as well as every other week (7th and 21st days of a month to be precise). [1] Commit 2568528 containers#861
1 parent b6ca18e commit 4aac4b0

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/arch-images.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: "Images: Build and push Arch Linux"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- images/arch/**
9+
- .github/workflows/arch-images.yaml
10+
schedule:
11+
- cron: '0 0 * * MON'
12+
13+
# Prevent multiple workflow runs from racing
14+
concurrency: ${{ github.workflow }}
15+
16+
env:
17+
distro: 'arch'
18+
19+
jobs:
20+
build-and-push-images:
21+
name: "Images: Build and push Arch Linux"
22+
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v2
30+
31+
- name: Login to Quay.io
32+
uses: docker/login-action@v2
33+
with:
34+
registry: quay.io
35+
username: 'toolbx+github'
36+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
37+
38+
- name: Build and push ${{ env.distro }}-toolbox image
39+
uses: docker/build-push-action@v3
40+
with:
41+
context: images/${{ env.distro }}
42+
file: images/${{ env.distro }}/Containerfile
43+
platforms: linux/amd64
44+
push: true
45+
no-cache: true
46+
tags: quay.io/toolbx/${{ env.distro }}-toolbox:latest

0 commit comments

Comments
 (0)