File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish environment definition to registry
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " spin-up.(ver).toml version, e.g. 3.4, 3.5"
8+ required : true
9+ type : string
10+
11+ jobs :
12+ publish-wit :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ id-token : write
16+ packages : write
17+ contents : write
18+
19+ steps :
20+ - name : Checkout repository
21+ uses : actions/checkout@v3
22+
23+ - name : Install oras
24+ uses : oras-project/setup-oras@v1
25+
26+ - name : Login to the GitHub registry
27+ uses : docker/login-action@v3
28+ with :
29+ registry : ghcr.io
30+ username : spinframeworkbot
31+ password : ${{ secrets.SPIN_WIT_PAT }}
32+
33+ - name : Publish environment TOML
34+ shell : bash
35+ env :
36+ VERSION : ${{ inputs.version }}
37+ run : ./scripts/build-and-publish-wit.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -euo pipefail
3+
4+ oras push ghcr.io/spinframework/environments/spin-up:$VERSION target-envs/spin-up.$VERSION .toml
You can’t perform that action at this time.
0 commit comments