Skip to content

Commit

Permalink
Deploy to app (#2728)
Browse files Browse the repository at this point in the history
# Motivation
The action that deploys to an app subnet works but is slow and not
ergonomic.

# Changes
- Use a larger runner to build faster
- Improve the markdown, although it would be nice it it were not all
bold.

# Tests
See the CI runs. [A sample
run:](https://github.com/dfinity/nns-dapp/actions/runs/5326744006)
![Screenshot from 2023-06-20
21-49-13](https://github.com/dfinity/nns-dapp/assets/5982633/4a29b6ca-4c1b-489a-8362-eec14b36f190)

---------

Co-authored-by: Max Murphy-Skvorzov <max@winning.black>
Co-authored-by: David Dal Busco <david.dalbusco@dfinity.org>
  • Loading branch information
3 people committed Jun 20, 2023
1 parent a66724f commit 1452fa7
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/deploy-to-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ concurrency:
cancel-in-progress: true
jobs:
deploy-app:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest-m
timeout-minutes: 60
env:
NNS_DAPP_APP_SUBNET_CANISTER_ID: "xnjld-hqaaa-aaaal-qb56q-cai"
Expand Down Expand Up @@ -103,12 +103,17 @@ jobs:
dfx canister install --mode "${{ inputs.mode || 'upgrade' }}" --yes --network "$DFX_NETWORK" "$CANISTER_NAME" --wasm out/sns_aggregator.wasm
- name: Canister info
run: |
# How to add a github summary: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-adding-a-job-summary
set -x
for canister in nns-dapp sns_aggregator ; do
echo "========================================"
printf "== % 34s ==\n" "$canister"
set -x
dfx-canister-url --network "$DFX_NETWORK" "$canister"
dfx canister info --network "$DFX_NETWORK" "$canister"
dfx canister metadata --network "$DFX_NETWORK" "$canister" git_commit_id
set +x
{
printf "## %s\n\n" "$canister"
printf "URL: "
dfx-canister-url --network "$DFX_NETWORK" "$canister"
printf "Commit: "
dfx canister metadata --network "$DFX_NETWORK" "$canister" git_commit_id || printf "NONE"
echo
dfx canister info --network "$DFX_NETWORK" "$canister"
echo
} >> $GITHUB_STEP_SUMMARY || true
done

0 comments on commit 1452fa7

Please sign in to comment.