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 7d1fe21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
if: ${{ !startsWith(inputs.gitref, 'v') }}
uses: ./.github/actions/build_package
with:
gitref: inputs.gitref
gitref: ${{ inputs.gitref }}

# Configure AWS communication via SSM.
- name: Configure AWS credentials
Expand All @@ -94,6 +94,9 @@ jobs:
# Move packages to instance using S3. Note that this will clobber the files.
- name: Upload packages to S3
run: |
ls
mv miden-node.deb ${{ env.node-package }}
mv miden-faucet.deb ${{ env.faucet-package }}
aws s3 cp ${{ env.node-package }} ${{ env.s3-path }}/${{ env.node-package }}
aws s3 cp ${{ env.faucet-package }} ${{ env.s3-path }}/${{ env.faucet-package }}
Expand Down Expand Up @@ -133,9 +136,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 Down

0 comments on commit 7d1fe21

Please sign in to comment.