Skip to content

Commit 80fd0e2

Browse files
committed
try docker instead
Signed-off-by: Kingdon Barrett <[email protected]>
1 parent a2c1a5a commit 80fd0e2

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/deploy.yml

+33-33
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
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 }}
9595

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
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
100100
101101
# 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
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

0 commit comments

Comments
 (0)