Skip to content

Commit

Permalink
ci: deploy script missing variable escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko-von-Leipzig committed Dec 7, 2024
1 parent 1a33337 commit 03416a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
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;

0 comments on commit 03416a4

Please sign in to comment.