-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1.24 KB
/
buildrepo.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
name: Build repository from PRs
on:
pull_request:
branches: [ "master"]
concurrency:
group: ${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
BASE_REPO_URL: https://bboozzoo.github.io/snapd-amazon-linux
jobs:
build-repo:
strategy:
matrix:
target: ["amazonlinux:2", "amazonlinux:2023"]
include:
- target: amazonlinux:2
repo_tarball_name: amazon-linux-2-repo.tar.xz
artifact_name: repo-tarball-amazonlinux-2
repo_url_suffix: amzn2
- target: amazonlinux:2023
repo_tarball_name: amazon-linux-2023-repo.tar.xz
artifact_name: repo-tarball-amazonlinux-2023
repo_url_suffix: al2023
runs-on: ubuntu-latest
container: ${{ matrix.target }}
steps:
- name: Install git
run: |
yum install git -y
- name: Checkout code
uses: actions/checkout@v3
- name: Build repository artifacts
id: build-repo
uses: "./.github/actions/build-repo"
with:
target: ${{ matrix.target }}
repo_tarball_name: ${{ matrix.repo_tarball_name }}
repo_artifact_name: ${{ matrix.artifact_name }}
repo_url: ${{ env.BASE_REPO_URL }}/${{ matrix.repo_url_suffix }}