Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix deploy workflow #567

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/ssm_execute/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
--output text \
--query "Command.CommandId")
echo "command_id=$COMMAND_ID" >> $GITHUB_OUTPUT
continue-on-error: true
continue-on-error: false

- name: Poll command status and retrieve live logs
id: poll_output
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ jobs:
if: ${{ !startsWith(inputs.gitref, 'v') }}
uses: ./.github/actions/build_package
with:
gitref: inputs.gitref
gitref: ${{ inputs.gitref }}

- name: Rename built packages
if: ${{ !startsWith(inputs.gitref, 'v') }}
run: |
mv miden-node.deb ${{ env.node-package }}
mv miden-faucet.deb ${{ env.faucet-package }}


# Configure AWS communication via SSM.
- name: Configure AWS credentials
Expand All @@ -88,7 +95,7 @@ jobs:
with:
instance_id: ${{ secrets[env.instance-id] }}
command: |
sudo apt udpate; \
sudo apt-get udpate; \
sudo apt install awscli -y

# Move packages to instance using S3. Note that this will clobber the files.
Expand Down Expand Up @@ -133,9 +140,9 @@ jobs:
sudo /usr/bin/miden-node make-genesis -i /etc/opt/miden-node/genesis.toml -o /opt/miden-node/genesis.dat --force; \
sudo /usr/bin/miden-faucet init -c /etc/opt/miden-faucet/miden-faucet.toml -f /opt/miden-faucet/accounts/faucet.mac; \
sudo mkdir /opt/miden-faucet/accounts; \
sudo cp /opt/miden-node/accounts/faucet.mac /opt/miden-faucet/accounts/faucet.mac
sudo chown -R miden-node /opt/miden-node
sudo chown -R miden-faucet /opt/miden-faucet
sudo cp /opt/miden-node/accounts/faucet.mac /opt/miden-faucet/accounts/faucet.mac; \
sudo chown -R miden-node /opt/miden-node; \
sudo chown -R miden-faucet /opt/miden-faucet;

- name: Start miden services
uses: ./.github/actions/ssm_execute
Expand All @@ -144,4 +151,4 @@ jobs:
command: |
sudo systemctl daemon-reload; \
sudo systemctl start miden-node; \
sudo systemctl start miden-faucet
sudo systemctl start miden-faucet;
Loading