forked from felddy/foundryvtt-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (68 loc) · 2.34 KB
/
_config.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
---
name: config
on:
workflow_call:
inputs:
platforms:
description: "The platforms to build (CSV)"
default: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x
required: false
type: string
outputs:
image_name:
description: "The Docker image name"
value: felddy/foundryvtt
data_artifact_name:
description: "The name of the test data artifact"
value: test-output
data_artifact_path:
description: "The path to include in the test data artifact"
value: data
image_archive_artifact_name:
description: "The name of the image archives artifact"
value: image-archives
platforms:
description: "The platforms to build (CSV)"
value: ${{ inputs.platforms }}
platforms_json:
description: "The platforms to build (JSON)"
value: ${{ jobs.csv-to-json.outputs.platforms_json }}
test_platform:
description: "The platform to use for testing"
value: linux/amd64
jobs:
diagnostics:
name: "Diagnostics"
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@18bf8ad2ca49c14cbb28b91346d626ccfb00c518
with:
egress-policy: block
allowed-endpoints: >
azure.archive.ubuntu.com:443
azure.archive.ubuntu.com:80
packages.microsoft.com:443
www.githubstatus.com:443
- name: Check GitHub Status
uses: crazy-max/ghaction-github-status@8d1f141b985510f36a0376b75b4dc8b0cfc90e8a
with:
overall_threshold: major
packages_threshold: major_outage
- name: Dump context
uses: crazy-max/ghaction-dump-context@516dbb0c760f39b4cdd750ae095f1688780f68f4
csv-to-json:
name: "Convert platforms CSV to JSON"
runs-on: ubuntu-latest
outputs:
platforms_json: ${{ steps.csv-to-json.outputs.platforms_json }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@18bf8ad2ca49c14cbb28b91346d626ccfb00c518
with:
egress-policy: block
allowed-endpoints: >
- name: Convert CSV to JSON
id: csv-to-json
run: |
echo "platforms_json=$(echo -n ${{ inputs.platforms }} | jq --raw-input --compact-output 'split(",")')" >> $GITHUB_OUTPUT