Skip to content

Commit 116da78

Browse files
committed
try build with spin registry push
Signed-off-by: Kingdon Barrett <[email protected]>
1 parent 0ffcbed commit 116da78

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

.github/workflows/deploy.yml

+36-36
Original file line numberDiff line numberDiff line change
@@ -71,44 +71,44 @@ jobs:
7171
uses: fermyon/actions/spin/setup@v1
7272

7373
# Push: WASM
74-
# - name: Push to OCI
75-
# id: push
76-
# uses: fermyon/actions/spin/push@v1
77-
# with:
78-
# registry: ghcr.io
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
74+
- name: Push to OCI
75+
id: push
76+
uses: fermyon/actions/spin/push@v1
9177
with:
9278
registry: ghcr.io
93-
username: ${{ github.actor }}
94-
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
9583

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
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 }}
10095

101-
# Copied from https://github.com/spinkube/containerd-shim-spin/blob/main/.github/workflows/docker-build-push.yaml
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
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
100+
101+
# # Copied from https://github.com/spinkube/containerd-shim-spin/blob/main/.github/workflows/docker-build-push.yaml
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
112112

113113
# Deploy:
114114
# - name: Deploy to Fermyon Cloud
@@ -124,7 +124,7 @@ jobs:
124124
- name: Set Image (Kustomize SpinApp)
125125
run: |
126126
pushd deploy/spin-app
127-
kustomize edit set image flux-docs/build=ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-3
127+
kustomize edit set image flux-docs/build=ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-2
128128
popd
129129
130130
# Login: GHCR
@@ -162,4 +162,4 @@ jobs:
162162
- name: Sign OCI WASM artifact
163163
run: |
164164
# keyless mode
165-
cosign sign ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-3 -y
165+
cosign sign ghcr.io/kingdon-ci/flux-docs/build:${{ github.run_id }}-2 -y

0 commit comments

Comments
 (0)