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