forked from cgwalters/sync-fedora-ostree-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1009 Bytes
/
build.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
name: Build
on:
schedule:
- cron: "0 6 * * *"
push:
branches: ["main"]
workflow_dispatch:
env:
REGISTRY: ghcr.io
permissions:
contents: read
packages: write
jobs:
encapsulate:
strategy:
fail-fast: false
max-parallel: 1
matrix:
variant: [silverblue]
version: [38]
runs-on: ubuntu-latest
container:
# We're using coreos-assembler just since it is a pre-made
# container with rpm-ostree
image: quay.io/coreos-assembler/coreos-assembler:latest
options: "--user root --privileged -v /srv:/srv"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login
run: podman login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }}
- name: Encapsulate
run: ./encap.sh fedora/${{ matrix.version }}/x86_64/${{ matrix.variant }} ${{ env.REGISTRY }}/${{ github.repository_owner }}/fedora-${{ matrix.variant }}:${{ matrix.version }}