This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
72 lines (63 loc) · 1.77 KB
/
update-base.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: update-base
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "base/**"
schedule:
# Sunday at 2am UTC
- cron: "0 2 * * 0"
jobs:
task:
name: ${{ matrix.command }}
runs-on: ubuntu-22.04
environment:
name: release
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
command:
- release-base
env:
EXTRA_OPTS: --jobs=4 --platform linux/amd64,linux/arm64
EXPECTED_IMAGES: 2
steps:
- name: Grab the source from Git
uses: actions/checkout@v3
with:
fetch-depth: 0 # needed to determine version
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
# keep this in sync with python version from base container
python-version: "3.11" # 3.11 is default on fedora-37
cache: "pip"
- name: Log in to ghcr.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ github.actor }}
password: ${{ github.token }}
registry: ghcr.io/${{ github.repository_owner }}
- name: Log in to quay.io
uses: redhat-actions/podman-login@v1
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
registry: quay.io
# - name: Log in to docker.io
# uses: redhat-actions/podman-login@v1
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_TOKEN }}
# registry: docker.io
- name: "Run: task ${{ matrix.command }}"
run: task ${{ matrix.command }}