Is it possible to deploy an app on the IC network using GitHub workflows with a local identity that has cycles but no wallet configured?
Depends a bit on how you define certain words.
Assuming ‘deploy’ means dfx canister install
or equivalent then you don’t even need cycles. As long as the identity is a controller of the target canister(s) you can install new wasms.
If ‘deploy’ also can mean creating the canister: If ‘has cycles’ means that the identity holds cycles on the cycles ledger, then it will work. If ‘has cycles’ means something else, please clarify.
Looking at your workflow I’m a bit confused with the current state. You seem to mix up networks and are creating a canister locally but then don’t use it for anything since dfx deploy
then targets --network ic
. Is it just WIP?
yes it wip.
i think i can comment the create canister section in workflow, and directly want to deploy.
i have cycles in my local identity which i check using: dfx cycles balance --network ic.
but github workflow uses its own identity and has no cycles in it , i want to somehow uses my local identity cycles in github workflow to deploy.
This looks correct:
echo "${{ secrets.FUEL_DAO_CANISTER_CONTROLLER_PRIVATE_KEY }}" > actions_identity.pem
nix-shell --run "dfx identity import --disable-encryption actions actions_identity.pem"
As an alternative, here is how we do it in CI for internetcomputer.org.
yes ,
i was not changing identity ,
Thanks