-
-
Notifications
You must be signed in to change notification settings - Fork 25
43 lines (39 loc) · 1.06 KB
/
release.yml
File metadata and controls
43 lines (39 loc) · 1.06 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
name: release
on:
workflow_dispatch:
inputs:
container:
description: "Container image name"
required: true
default: 'autoconf'
type: choice
options:
- autoconf
- devcontainer
- wasicontainer
jobs:
authorize:
runs-on: ubuntu-latest
if: contains('["brettcannon", "corona10", "erlend-aasland"]', github.actor)
steps:
- run: echo "Authorized"
release-to-ghcr:
name: Release ${{ inputs.container }}
needs: authorize
uses: ./.github/workflows/build-and-push.yml
permissions:
contents: read
packages: write
with:
container: ${{ inputs.container }}
# Explicit WASI container release **if** the dev container was also released due to being a dependency.
release-wasicontainer:
name: Release dependent wasicontainer
needs: [authorize, release-to-ghcr]
if: inputs.container == 'devcontainer'
uses: ./.github/workflows/build-and-push.yml
permissions:
contents: read
packages: write
with:
container: wasicontainer