@@ -64,50 +64,51 @@ jobs:
64
64
rm -r flux/use-cases flux/guides flux/monitoring flux/migration
65
65
rm -rf flux/gitops-toolkit img/screens shortcode-gallery img/*.png
66
66
rm -r flux/cheatsheets # Get us below 200 (https://github.com/spinkube/containerd-shim-spin/issues/28)
67
+ rm -r favicons contributing/docs
67
68
popd
68
69
69
70
- name : Install Spin
70
71
uses : fermyon/actions/spin/setup@v1
71
72
72
73
# Push: WASM
73
- - name : Push to OCI
74
- id : push
75
- uses : fermyon/actions/spin/push@v1
76
- with :
77
- registry : ghcr.io
78
- registry_username : ${{ github.actor }}
79
- registry_password : ${{ secrets.GITHUB_TOKEN }}
80
- registry_reference : " ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-2"
81
- manifest_file : spin.toml
82
-
83
- # Push: Docker WASM (alternate while spin registry push cannot be used)
84
- # - name: Set up QEMU
85
- # uses: docker/setup-qemu-action@v3
86
- # - name: setup buildx
87
- # uses: docker/setup-buildx-action@v3
88
- # - name: login to GitHub container registry
89
- # uses: docker/login-action@v3
74
+ # - name: Push to OCI
75
+ # id: push
76
+ # uses: fermyon/actions/spin/push@v1
90
77
# with:
91
78
# registry: ghcr.io
92
- # username: ${{ github.actor }}
93
- # password: ${{ secrets.GITHUB_TOKEN }}
79
+ # registry_username: ${{ github.actor }}
80
+ # registry_password: ${{ secrets.GITHUB_TOKEN }}
81
+ # registry_reference: "ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-2"
82
+ # manifest_file: spin.toml
83
+
84
+ # Push: Docker WASM (alternate while spin registry push cannot be used)
85
+ - name : Set up QEMU
86
+ uses : docker/setup-qemu-action@v3
87
+ - name : setup buildx
88
+ uses : docker/setup-buildx-action@v3
89
+ - name : login to GitHub container registry
90
+ uses : docker/login-action@v3
91
+ with :
92
+ registry : ghcr.io
93
+ username : ${{ github.actor }}
94
+ password : ${{ secrets.GITHUB_TOKEN }}
94
95
95
- # - name: enable containerd image store
96
- # run: |
97
- # echo '{ "features": { "containerd-snapshotter": true } }' | sudo tee /etc/docker/daemon.json
98
- # sudo systemctl restart docker
96
+ - name : enable containerd image store
97
+ run : |
98
+ echo '{ "features": { "containerd-snapshotter": true } }' | sudo tee /etc/docker/daemon.json
99
+ sudo systemctl restart docker
99
100
100
101
# Copied from https://github.com/spinkube/containerd-shim-spin/blob/main/.github/workflows/docker-build-push.yaml
101
- # - name: build and push
102
- # uses: docker/build-push-action@v5
103
- # with:
104
- # push: true
105
- # tags: |
106
- # ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-3
107
- # ghcr.io/kingdon-ci/flux-docs/build:latest
108
- # context: .
109
- # platforms: wasi/wasm
110
- # provenance: false
102
+ - name : build and push
103
+ uses : docker/build-push-action@v5
104
+ with :
105
+ push : true
106
+ tags : |
107
+ ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-3
108
+ ghcr.io/kingdon-ci/flux-docs/build:latest
109
+ context : .
110
+ platforms : wasi/wasm
111
+ provenance : false
111
112
112
113
# Deploy:
113
114
# - name: Deploy to Fermyon Cloud
@@ -123,7 +124,7 @@ jobs:
123
124
- name : Set Image (Kustomize SpinApp)
124
125
run : |
125
126
pushd deploy/spin-app
126
- kustomize edit set image flux-docs/build=ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-2
127
+ kustomize edit set image flux-docs/build=ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-3
127
128
popd
128
129
129
130
# Login: GHCR
@@ -161,4 +162,4 @@ jobs:
161
162
- name : Sign OCI WASM artifact
162
163
run : |
163
164
# keyless mode
164
- cosign sign ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-2 -y
165
+ cosign sign ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-3 -y
0 commit comments