Skip to content

Commit de826db

Browse files
committed
add repository dispatch to trigger publishing from main project repo
1 parent 812eb69 commit de826db

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ name: deploy-docs
22

33
on:
44
workflow_dispatch:
5+
repository_dispatch:
6+
types: [trigger-downstream]
57
push:
6-
branches: [ main ]
8+
branches: [main]
79

810
env:
911
REGISTRY: ghcr.io
1012
IMAGE_NAME: ${{ github.repository }}
11-
MODULE: hololinked-python-docs
12-
13+
MODULE: hololinked-python-docs
14+
1315
jobs:
1416
build:
1517
name: build, sign & deploy
@@ -30,8 +32,8 @@ jobs:
3032
- name: Install cosign
3133
uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0
3234
with:
33-
cosign-release: 'v2.2.4'
34-
35+
cosign-release: "v2.2.4"
36+
3537
- name: Install Skaffold
3638
run: |
3739
set -euo pipefail
@@ -62,8 +64,7 @@ jobs:
6264
--push \
6365
--file-output build.out.json \
6466
-m ${{ env.MODULE }}
65-
66-
67+
6768
# Cosign sign each built image by digest from the skaffold build output (keyless with OIDC)
6869
- name: Cosign sign images
6970
run: |
@@ -73,7 +74,7 @@ jobs:
7374
echo "Signing $REF"
7475
cosign sign --yes "$REF"
7576
done
76-
77+
7778
# Provide your cluster config (example expects a base64-encoded kubeconfig secret)
7879
- name: Configure kubeconfig
7980
env:
@@ -87,4 +88,4 @@ jobs:
8788
run: |
8889
skaffold deploy \
8990
--build-artifacts build.out.json \
90-
-m ${{ env.MODULE }}
91+
-m ${{ env.MODULE }}

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
80,120
44
],
55
"editor.formatOnSave": true,
6-
"[markdown]": {
7-
"editor.formatOnSave": false
6+
"ruff.lineLength": 120,
7+
"[yaml]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
9+
"editor.formatOnSave": true,
10+
"prettier.tabWidth": 2
811
}
912
}

0 commit comments

Comments
 (0)