-
-
Notifications
You must be signed in to change notification settings - Fork 89
59 lines (56 loc) · 2.39 KB
/
Copy pathpush.yaml
File metadata and controls
59 lines (56 loc) · 2.39 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
49
50
51
52
53
54
55
56
57
58
59
name: push-artifacts
on:
workflow_dispatch:
inputs:
version:
description: 'RC version'
required: true
permissions:
contents: read
jobs:
push-minimal:
runs-on: ubuntu-latest
permissions:
id-token: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Cosign
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
- name: Setup Timoni
uses: ./actions/setup
- name: Login to GHCR
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push blueprint starter
run: |
timoni mod push ./blueprints/starter oci://ghcr.io/stefanprodan/timoni/blueprints/starter \
-v ${{ github.event.inputs.version }} --latest \
-a 'org.opencontainers.image.licenses=Apache-2.0' \
-a 'org.opencontainers.image.source=https://github.com/stefanprodan/timoni' \
-a 'org.opencontainers.image.description=Get started blueprint for timoni.sh modules.' \
-a 'org.opencontainers.image.documentation=https://timoni.sh' \
--sign cosign
- name: Push minimal module
run: |
timoni mod push ./examples/minimal oci://ghcr.io/stefanprodan/timoni/minimal \
-v ${{ github.event.inputs.version }} --latest \
-a 'org.opencontainers.image.licenses=Apache-2.0' \
-a 'org.opencontainers.image.source=https://github.com/stefanprodan/timoni' \
-a 'org.opencontainers.image.description=A minimal timoni.sh module.' \
-a 'org.opencontainers.image.documentation=https://timoni.sh' \
--sign cosign
- name: Push schemas
run: |
timoni artifact push oci://ghcr.io/stefanprodan/timoni/schemas \
-f ./schemas -t ${{ github.event.inputs.version }} -t latest \
-a 'org.opencontainers.image.licenses=Apache-2.0' \
-a 'org.opencontainers.image.source=https://github.com/stefanprodan/timoni' \
-a 'org.opencontainers.image.description=Timoni CUE schemas.' \
-a 'org.opencontainers.image.documentation=https://timoni.sh' \
--content-type="cue.mod/pkg" \
--sign cosign