Skip to content

Commit

Permalink
tmp test for ssm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko-von-Leipzig committed Aug 29, 2024
1 parent 2c7b65d commit 52aa0bc
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/deploy_devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@ jobs:
labels: ubuntu22-arm-4core

# Required for devnet instance access.
secrets:
account_id: "${{ secrets.MIDEN_DEV_ACCOUNT_ID }}"
instance_id: "${{ secrets.DEVNET_INSTANCE_ID }}"
env:
account-id: "${{ secrets.MIDEN_DEV_ACCOUNT_ID }}"
instance-id: "${{ secrets.DEVNET_INSTANCE_ID }}"

steps:
- uses: actions/checkout@main

- name: Set version
id: version
run: echo "version=$(git describe)" >> $GITHUB_OUTPUT
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::${{ env.account-id }}:role/midendev-GithubActionsRole
role-session-name: GithubActionsSession

- name: Build Debian packages
id: build
uses: ./.github/actions/debian-packages
- name: ssm basic echo
uses: ./.github/actions/ssm-send-command
with:
version: ${{ steps.version.outputs.version }}
instance-id: ${{ env.instance-id }}
command: "echo 'hello there'"

- name: Deploy packages
uses: ./.github/actions/deploy
- name: ssm failure
uses: ./.github/actions/ssm-send-command
with:
role-to-assume: arn:aws:iam::${{ secrets.account_id }}:role/midendev-GithubActionsRole
aws-region: us-west-1
instance-id: ${{ secrets.instance_id }}
node_package: ${{ steps.build.outputs.node_path }}
faucet_package: ${{ steps.build.outputs.faucet_path }}
instance-id: ${{ env.instance-id }}
command: "exit 511"

0 comments on commit 52aa0bc

Please sign in to comment.