-
Notifications
You must be signed in to change notification settings - Fork 1
198 lines (181 loc) · 6 KB
/
test.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
---
name: Test Workflow
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_only_version_file_in_container:
name: "Build only, version: file_in_container"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: false
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
build_nohealthcheck: false
get_version_method: file_in_container:file=/IMAGE_VERSION
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_only_version_cargo_toml_file_in_image:
name: "Build only, version: cargo_toml_file_in_image"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: false
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
build_nohealthcheck: false
get_version_method: cargo_toml_file_in_image:file=/Cargo.toml
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_only_version_cargo_toml_file_in_repo:
name: "Build only, version: cargo_toml_file_in_repo"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: false
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
build_nohealthcheck: false
get_version_method: cargo_toml_file_in_repo:file=/test_image_rootfs/Cargo.toml
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_only_version_git_commit_hash_short:
name: "Build only, version: git_commit_hash_short"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: false
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
build_nohealthcheck: false
get_version_method: git_commit_hash_short
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_push_version_file_in_container:
name: "Build & Push, version: file_in_container"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: true
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
build_nohealthcheck: false
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_push_version_cargo_toml_file_in_image:
name: "Build & Push, version: cargo_toml_file_in_image"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: true
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
build_nohealthcheck: false
get_version_method: cargo_toml_file_in_image:file=/Cargo.toml
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_push_version_cargo_toml_file_in_repo:
name: "Build & Push, version: cargo_toml_file_in_repo"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: true
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
build_nohealthcheck: false
get_version_method: cargo_toml_file_in_repo:file=/test_image_rootfs/Cargo.toml
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_push_version_git_commit_hash_short:
name: "Build & Push, version: git_commit_hash_short"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: true
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
build_nohealthcheck: false
get_version_method: git_commit_hash_short
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_only_nohealthcheck:
name: "Build only, nohealthcheck"
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: false
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_push_nohealthcheck:
uses: ./.github/workflows/build_and_push_image.yml
name: "Build & Push, nohealthcheck"
with:
push_enabled: true
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
platform_linux_arm32v6_enabled: true
platform_linux_i386_enabled: true
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
build_test:
uses: ./.github/workflows/build_and_push_image.yml
name: "Build & Push Test, nohealthcheck"
with:
push_enabled: true
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
build_latest: false
build_test: true
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}
populate_cache:
name: "Populate cache"
runs-on: ubuntu-latest
steps:
# Check out code
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: "Make some data to cache"
run: |
mkdir -p ./cache
dd if=/dev/zero of=./cache/data bs=4k count=50
ls -la ./cache/data
# Populate cache
- name: "Populate cache"
id: populate_cache
uses: actions/[email protected]
with:
path: ./cache
key: ${{ github.run_id }}
check_cache:
name: "Check cache"
needs: [populate_cache]
uses: ./.github/workflows/build_and_push_image.yml
with:
push_enabled: false
ghcr_repo_owner: mikenye
ghcr_repo: ${{ github.repository }}
cache_enabled: true
cache_path: ./cache
cache_key: ${{ github.run_id }}
secrets:
ghcr_token: ${{ secrets.GITHUB_TOKEN }}