Skip to content

Commit 23b150d

Browse files
committed
second
1 parent 5aae04b commit 23b150d

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/canister-tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,46 @@ jobs:
137137
# downloaded file
138138
path: archive.wasm.gz
139139

140+
docker-build-frontend:
141+
runs-on: ubuntu-latest
142+
needs: docker-build-base
143+
steps:
144+
- uses: actions/checkout@v4
145+
146+
- name: Infer version
147+
id: version
148+
run: |
149+
version="$(./scripts/version)"
150+
echo "Inferred version: '$version'"
151+
echo "version=$version" >> "$GITHUB_OUTPUT"
152+
153+
- name: Set up docker buildx
154+
uses: docker/setup-buildx-action@v3
155+
156+
- name: Build Frontend Canister
157+
uses: docker/build-push-action@v5
158+
with:
159+
context: .
160+
file: Dockerfile
161+
build-args: |
162+
II_VERSION=${{ steps.version.outputs.version }}
163+
II_DEV_CSP=0
164+
cache-from: type=gha,scope=cached-stage
165+
# Exports the artefacts from the final stage
166+
outputs: ./out
167+
target: scratch_internet_identity_frontend
168+
169+
- run: mv out/internet_identity_frontend.wasm.gz internet_identity_frontend.wasm.gz
170+
- run: sha256sum internet_identity_frontend.wasm.gz
171+
- name: "Upload internet_identity_frontend.wasm.gz"
172+
uses: actions/upload-artifact@v4
173+
with:
174+
# name is the name used to display and retrieve the artifact
175+
name: internet_identity_frontend.wasm.gz
176+
# path is the name used as the file to upload and the name of the
177+
# downloaded file
178+
path: internet_identity_frontend.wasm.gz
179+
140180
wasm-size:
141181
runs-on: ubuntu-latest
142182
needs: docker-build-ii

0 commit comments

Comments
 (0)