3737 docker-build-internet_identity :
3838 # NOTE: the display name must contain the asset filename so that the release
3939 # action can map assets to job IDs (see .github/actions/release/run.sh).
40- name : docker-build-internet_identity (internet_identity_production .wasm.gz)
40+ name : docker-build-internet_identity (internet_identity_backend .wasm.gz)
4141 runs-on : ubuntu-latest
4242 needs : docker-build-base
4343 steps :
5353 - name : Set up docker buildx
5454 uses : docker/setup-buildx-action@v3
5555
56- - name : Build internet_identity_production .wasm.gz
56+ - name : Build internet_identity_backend .wasm.gz
5757 uses : docker/build-push-action@v5
5858 with :
5959 context : .
@@ -65,16 +65,16 @@ jobs:
6565 outputs : ./out
6666 target : scratch_internet_identity
6767
68- - run : mv out/internet_identity.wasm.gz internet_identity_production .wasm.gz
69- - run : sha256sum internet_identity_production .wasm.gz
70- - name : " Upload internet_identity_production .wasm.gz"
68+ - run : mv out/internet_identity.wasm.gz internet_identity_backend .wasm.gz
69+ - run : sha256sum internet_identity_backend .wasm.gz
70+ - name : " Upload internet_identity_backend .wasm.gz"
7171 uses : actions/upload-artifact@v4
7272 with :
7373 # name is the name used to display and retrieve the artifact
74- name : internet_identity_production .wasm.gz
74+ name : internet_identity_backend .wasm.gz
7575 # path is the name used as the file to upload and the name of the
7676 # file when downloaded
77- path : internet_identity_production .wasm.gz
77+ path : internet_identity_backend .wasm.gz
7878
7979 docker-build-archive :
8080 runs-on : ubuntu-latest
@@ -153,12 +153,12 @@ jobs:
153153 - name : " Download wasm"
154154 uses : actions/download-artifact@v4
155155 with :
156- name : internet_identity_production .wasm.gz
156+ name : internet_identity_backend .wasm.gz
157157 path : .
158158 - id : record-size
159159 uses : ./.github/actions/file-size
160160 with :
161- file : internet_identity_production .wasm.gz
161+ file : internet_identity_backend .wasm.gz
162162 save : ${{ github.ref == 'refs/heads/main' }}
163163 - name : " Check canister size"
164164 run : |
@@ -251,9 +251,9 @@ jobs:
251251 - name : " Download II wasm"
252252 uses : actions/download-artifact@v4
253253 with :
254- name : internet_identity_production .wasm.gz
254+ name : internet_identity_backend .wasm.gz
255255 path : .
256- - run : mv internet_identity_production .wasm.gz internet_identity.wasm.gz
256+ - run : mv internet_identity_backend .wasm.gz internet_identity.wasm.gz
257257 - name : Install PocketIC server
258258 uses : dfinity/pocketic@main
259259 with :
@@ -375,7 +375,7 @@ jobs:
375375 - name : " Download II wasm"
376376 uses : actions/download-artifact@v4
377377 with :
378- name : internet_identity_production .wasm.gz
378+ name : internet_identity_backend .wasm.gz
379379 path : .
380380
381381 - name : " Download archive wasm"
@@ -396,7 +396,7 @@ jobs:
396396
397397 - name : Run Tests
398398 run : |
399- mv internet_identity_production .wasm.gz internet_identity.wasm.gz
399+ mv internet_identity_backend .wasm.gz internet_identity.wasm.gz
400400 # NOTE: Here we download changing assets (i.e. the latest release) meaning that in some rare cases (after a new release)
401401 # PRs that used to be green may become red (if the new release broke something). While this is not CI best practice, it's
402402 # a relatively small price to pay to make sure PRs are always tested against the latest release.
@@ -427,7 +427,7 @@ jobs:
427427 - name : " Download II wasm"
428428 uses : actions/download-artifact@v4
429429 with :
430- name : internet_identity_production .wasm.gz
430+ name : internet_identity_backend .wasm.gz
431431 path : .
432432
433433 - name : " Download archive wasm"
@@ -437,7 +437,7 @@ jobs:
437437 path : .
438438
439439 - name : Move wasms
440- run : mv internet_identity_production .wasm.gz internet_identity.wasm.gz
440+ run : mv internet_identity_backend .wasm.gz internet_identity.wasm.gz
441441
442442 - name : Create dummy assets
443443 run : |
@@ -516,7 +516,7 @@ jobs:
516516 - name : " Download II backend wasm"
517517 uses : actions/download-artifact@v4
518518 with :
519- name : internet_identity_production .wasm.gz
519+ name : internet_identity_backend .wasm.gz
520520 path : .
521521
522522 - name : " Download II frontend wasm"
@@ -548,7 +548,7 @@ jobs:
548548 - name : Deploy canisters
549549 run : |
550550 # NOTE: dfx install will run the postinstall scripts from dfx.json
551- dfx canister install internet_identity --wasm internet_identity_production .wasm.gz --argument "(opt record { captcha_config = opt record { max_unsolved_captchas= 50:nat64; captcha_trigger = variant {Static = variant { CaptchaDisabled }}}; related_origins = opt vec { \"https://id.ai\"; \"https://identity.ic0.app\"; \"https://identity.internetcomputer.org\" }; new_flow_origins = opt vec { \"https://id.ai\" }; openid_configs = opt vec { ${{ steps.openid-configs.outputs.OPENID_CONFIGS }} } })"
551+ dfx canister install internet_identity --wasm internet_identity_backend .wasm.gz --argument "(opt record { captcha_config = opt record { max_unsolved_captchas= 50:nat64; captcha_trigger = variant {Static = variant { CaptchaDisabled }}}; related_origins = opt vec { \"https://id.ai\"; \"https://identity.ic0.app\"; \"https://identity.internetcomputer.org\" }; new_flow_origins = opt vec { \"https://id.ai\" }; openid_configs = opt vec { ${{ steps.openid-configs.outputs.OPENID_CONFIGS }} } })"
552552 II_CANISTER_ID=$(dfx canister id internet_identity)
553553 dfx canister install internet_identity_frontend --wasm internet_identity_frontend.wasm.gz --argument "(record { backend_canister_id = principal \"$II_CANISTER_ID\"; backend_origin = \"https://backend.id.ai\"; related_origins = opt vec { \"https://id.ai\"; \"https://identity.ic0.app\"; \"https://identity.internetcomputer.org\" }; fetch_root_key = opt true; dev_csp = opt true })"
554554 dfx canister install test_app --wasm demos/test-app/test_app.wasm
@@ -619,7 +619,7 @@ jobs:
619619 - name : " Download II wasm"
620620 uses : actions/download-artifact@v4
621621 with :
622- name : internet_identity_production .wasm.gz
622+ name : internet_identity_backend .wasm.gz
623623 path : .
624624
625625 - name : " Download archive wasm"
@@ -645,7 +645,7 @@ jobs:
645645 sha=$(shasum -a 256 ./archive.wasm.gz | cut -d ' ' -f1 | sed 's/../\\&/g')
646646 dfx canister --network ic --wallet "$wallet" install --mode upgrade \
647647 --argument "(opt record {archive_config = record { module_hash = blob \"$sha\"; entries_buffer_limit = 10000:nat64; entries_fetch_limit = 1000:nat16; polling_interval_ns = 60000000000:nat64}; canister_creation_cycles_cost = opt (1000000000000:nat64); })" \
648- --wasm internet_identity_production .wasm.gz \
648+ --wasm internet_identity_backend .wasm.gz \
649649 y2aaj-miaaa-aaaad-aacxq-cai
650650
651651 - name : " Download test app wasm"
@@ -704,10 +704,10 @@ jobs:
704704 steps :
705705 - uses : actions/checkout@v4
706706
707- - name : " Download production build"
707+ - name : " Download backend build"
708708 uses : actions/download-artifact@v4
709709 with :
710- name : internet_identity_production .wasm.gz
710+ name : internet_identity_backend .wasm.gz
711711 path : .
712712
713713 - name : " Download archive"
@@ -784,7 +784,7 @@ jobs:
784784 id : prepare-release
785785 with :
786786 assets : |
787- internet_identity_production .wasm.gz
787+ internet_identity_backend .wasm.gz
788788 internet_identity_frontend.wasm.gz
789789 archive.wasm.gz
790790 changelog : ${{ steps.changelog.outputs.result }}
@@ -793,12 +793,24 @@ jobs:
793793 - name : Release notes
794794 run : cat ${{ steps.prepare-release.outputs.notes-file }}
795795
796+ # Create backward-compatible copies of the backend wasm
797+ - name : Create backward-compatible copies
798+ run : |
799+ cp internet_identity_backend.wasm.gz internet_identity_production.wasm.gz
800+ cp internet_identity_backend.wasm.gz internet_identity_dev.wasm.gz
801+
796802 # Create a sha file for dfx pull, referenced by the metadata set in the build
797803 - name : Create sha for dfx pull
798804 run : |
805+ shasum -a 256 \
806+ ./internet_identity_backend.wasm.gz > \
807+ ./internet_identity_backend.wasm.gz.sha256
799808 shasum -a 256 \
800809 ./internet_identity_production.wasm.gz > \
801810 ./internet_identity_production.wasm.gz.sha256
811+ shasum -a 256 \
812+ ./internet_identity_dev.wasm.gz > \
813+ ./internet_identity_dev.wasm.gz.sha256
802814 shasum -a 256 \
803815 ./internet_identity_frontend.wasm.gz > \
804816 ./internet_identity_frontend.wasm.gz.sha256
@@ -810,8 +822,12 @@ jobs:
810822 --tag ${{ github.ref }} \
811823 --notes-file ${{ steps.prepare-release.outputs.notes-file }} \
812824 -- \
825+ internet_identity_backend.wasm.gz \
826+ internet_identity_backend.wasm.gz.sha256 \
813827 internet_identity_production.wasm.gz \
814828 internet_identity_production.wasm.gz.sha256 \
829+ internet_identity_dev.wasm.gz \
830+ internet_identity_dev.wasm.gz.sha256 \
815831 internet_identity_frontend.wasm.gz \
816832 internet_identity_frontend.wasm.gz.sha256 \
817833 src/internet_identity/internet_identity.did \
0 commit comments