-
-
Notifications
You must be signed in to change notification settings - Fork 3
95 lines (80 loc) · 2.45 KB
/
generate.yaml
File metadata and controls
95 lines (80 loc) · 2.45 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Generate Container Guts
on:
pull_request: []
jobs:
generate-recipe:
runs-on: ubuntu-latest
name: ${{ inputs.docker_uri }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Create conda environment
run: conda create --quiet -c conda-forge --name guts
- uses: actions/checkout@v3
- name: Install Guts
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate guts
pip install -e .
echo "/usr/share/miniconda/bin" >> ${GITHUB_PATH}
- name: Test Basic Guts
uses: ./action/manifest
with:
image: ubuntu
- name: Filesystem Include
uses: ./action/manifest
with:
image: ubuntu
include: fs
generate-recipes:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image: ["ubuntu", "rockylinux:9.0", "alpine", "busybox"]
name: Generate Matrix
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Create conda environment
run: conda create --quiet -c conda-forge --name guts
- uses: actions/checkout@v3
- name: Install Guts
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate guts
pip install -e .
echo "/usr/share/miniconda/bin" >> ${GITHUB_PATH}
- name: Guts for ${{ matrix.image }}
uses: ./action/manifest
with:
image: ${{ matrix.image }}
outfile: ${{ matrix.image }}.json
- name: View Output
run: cat ${{ matrix.image }}.json
test-diffs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image: [["vanessa/salad", "vanessa-salad.json"]]
name: Generate Matrix
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Create conda environment
run: conda create --quiet -c conda-forge --name guts
- uses: actions/checkout@v3
- name: Install Guts
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate guts
pip install -e .
echo "/usr/share/miniconda/bin" >> ${GITHUB_PATH}
- name: Guts Diff for ${{ matrix.image[0] }}
uses: ./action/diff
with:
image: ${{ matrix.image[0] }}
outfile: ${{ matrix.image[1] }}
- name: View Output
run: cat ${{ matrix.image[1] }}