-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1.21 KB
/
publish-examples.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
name: Publish recipe examples
on:
push:
branches:
- main
paths:
- ".github/workflows/publish-examples.yml"
- "examples/**"
jobs:
publish:
name: Publish example recipes
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
env:
DOCKER_CONFIG: $HOME/.docker
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# TODO: Loop over dynamically through all examples
- uses: futurice/jalapeno@main
with:
cmd: push ./examples/github-action oci://ghcr.io/futurice/jalapeno/examples/github-action
- uses: futurice/jalapeno@main
with:
cmd: push ./examples/minimal oci://ghcr.io/futurice/jalapeno/examples/minimal
- uses: futurice/jalapeno@main
with:
cmd: push ./examples/variable-types oci://ghcr.io/futurice/jalapeno/examples/variable-types
- uses: futurice/jalapeno@main
with:
cmd: push ./examples/with-tests oci://ghcr.io/futurice/jalapeno/examples/with-tests