Skip to content

Commit 54c0272

Browse files
committed
Build and push only on main branch
And on the workflow_dispatch so humans can trigger a build as well Signed-off-by: Kingdon Barrett <[email protected]>
1 parent 8953337 commit 54c0272

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/deploy.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
on: push
21
name: Deploy website on push
32

3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
# Check out fluxcd/website .github/workflows/netlify.yml
9+
# We should emulate this fully - it has a hook from the fluxcd/community
10+
# repository's github actions that enables community to trigger a deploy
11+
repository_dispatch:
12+
types: [trigger-workflow]
13+
# (That's what a repository_dispatch workflow is meant to be doing here)
14+
415
jobs:
516
fermyon-deploy:
617
name: Deploy
@@ -55,7 +66,7 @@ jobs:
5566
registry_reference: "ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-2"
5667
manifest_file: spin.toml
5768

58-
- name: Deploy and push OCI
69+
- name: Deploy to Fermyon Cloud
5970
uses: fermyon/actions/spin/deploy@v1
6071
with:
6172
fermyon_token: ${{ secrets.FERMYON_CLOUD_TOKEN }}

0 commit comments

Comments
 (0)