Skip to content

Commit a4e5861

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 at 00:00 every Monday. [1] Commit 2568528 #861 #1308
1 parent 73663a6 commit a4e5861

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/arch-images.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build and push the arch-toolbox image
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+
jobs:
17+
build-and-push-images:
18+
name: Build and push the arch-toolbox image
19+
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v2
27+
28+
- name: Log in to Quay.io
29+
uses: docker/login-action@v2
30+
with:
31+
registry: quay.io
32+
username: 'toolbx+github'
33+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
34+
35+
- name: Build and push the arch-toolbox image
36+
uses: docker/build-push-action@v3
37+
with:
38+
context: images/arch
39+
file: images/arch/Containerfile
40+
platforms: linux/amd64
41+
push: true
42+
no-cache: true
43+
tags: quay.io/toolbx/arch-toolbox:latest

0 commit comments

Comments
 (0)