-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.42 KB
/
Copy pathgenerate-workflows.yaml
File metadata and controls
48 lines (44 loc) · 1.42 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
name: Generate Workflows
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
push:
branches: ["main"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
pull_request:
branches: ["main"]
workflow_dispatch: {}
jobs:
list-operating-systems:
runs-on: gha-runner-scale-set-dotfiles-verde
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- id: set-matrix
run: echo "::set-output name=matrix::$(ls platforms/docker | jq -R -s -c 'split("\n")[:-1]')"
build-and-push:
needs: list-operating-systems
strategy:
fail-fast: false
matrix:
os: ${{ fromJson(needs.list-operating-systems.outputs.matrix) }}
concurrency:
group: "build-${{ matrix.os }}"
cancel-in-progress: false
uses: VirtualDisk/dotfiles/.github/workflows/build-and-push.yaml@main
with:
os: "${{ matrix.os }}"
registry: "registry.zoe/zcr.io"
secrets:
registry_username: "${{ secrets.REGISTRY_ZOE_USERNAME }}"
registry_password: "${{ secrets.REGISTRY_ZOE_PASSWORD }}"
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write