Commit f5d3265 1 parent f5ccb44 commit f5d3265 Copy full SHA for f5d3265
File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ on : push
2
+ name : Deploy website on push
3
+
4
+ jobs :
5
+ fermyon-deploy :
6
+ name : Deploy
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Get latest flux-docs
10
+ uses : actions/checkout@v4
11
+
12
+ - name : Get fluxcd/website (test-stimulus)
13
+ uses : actions/checkout@v4
14
+ with :
15
+ repository : fluxcd/website
16
+ ref : test-stimulus
17
+ path : website
18
+
19
+ - name : Setup Hugo
20
+ uses : peaceiris/actions-hugo@v3
21
+ with :
22
+ hugo-version : ' 0.122.0'
23
+ extended : true
24
+
25
+ - name : Setup Python
26
+ uses : actions/setup-python@v5
27
+ with :
28
+ python-version : ' 3.10'
29
+
30
+ - name : Setup Go
31
+ uses : actions/setup-go@v5
32
+ with :
33
+ go-version : ' ^1.21.0'
34
+
35
+ - name : Build content
36
+ run : |
37
+ # make production-build URL=https://docs-fluxcd-website-6lrhgsuf.fermyon.app/
38
+ pushd website
39
+ pip install -r requirements.txt
40
+ hugo version; popd
41
+ make build
42
+
43
+ - name : Install Spin
44
+ uses : fermyon/actions/spin/setup@v1
45
+
46
+ - name : Push to OCI
47
+ id : push
48
+ uses : fermyon/actions/spin/push@v1
49
+ with :
50
+ registry : ghcr.io
51
+ registry_username : ${{ github.actor }}
52
+ registry_password : ${{ secrets.GITHUB_TOKEN }}
53
+ registry_reference : " ghcr.io/${{ env.REPOSITORY }}/build:${{ github.run_id }}-2"
54
+ manifest_file : spin.toml
55
+
56
+ - name : Deploy and push OCI
57
+ uses : fermyon/actions/spin/deploy@v1
58
+ with :
59
+ fermyon_token : ${{ secrets.FERMYON_CLOUD_TOKEN }}
60
+ run_build : false
You can’t perform that action at this time.
0 commit comments