Skip to content

Commit

Permalink
Minor Changes (#4)
Browse files Browse the repository at this point in the history
* Deploy Network
* Add Permissions
* Minor changes
* Concurrency change
  • Loading branch information
bane authored Jan 18, 2024
1 parent 7d08b73 commit 6ca83e4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/deploy-network.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
---

concurrency: ci-$
name: Deploy Network
on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
environment:
description: The environment to run against
type: choice
options:
- dev
- test
options: [dev, test]
required: true
workflow_call:
inputs:
Expand All @@ -24,7 +22,7 @@ permissions:
security-events: write

jobs:
build:
deploy:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
Expand All @@ -42,7 +40,7 @@ jobs:
uses: hashicorp/[email protected]
with:
terraform_version: 1.4.5
- name: "Configure terraform for ${{ inputs.environment }} build"
- name: "Configure Terraform for ${{ inputs.environment }} build"
run: |
sed 's/# backend "s3" {}/backend "s3" {}/' main.tf > main.tf.tmp && mv main.tf.tmp main.tf
- name: Terraform Init
Expand All @@ -69,11 +67,11 @@ jobs:
chmod 600 ~/private.key
eval "$(ssh-agent)"
ssh-add ~/private.key
- name: Install ansible / botocore / boto3
- name: Install Ansible / botocore / boto3
run: |
python3 -m pip install --user ansible
python3 -m pip install boto3 botocore
- name: Configure ansible for nightly build
- name: Configure Ansible for ${{ inputs.environment }} build
working-directory: ansible
run: |
echo "${{ secrets.VAULT_PASSWORD }}" > password.txt
Expand All @@ -88,7 +86,7 @@ jobs:
ansible-inventory --graph
ansible-galaxy install -r requirements.yml
ansible-playbook site.yml --extra-vars "block_gas_limit=200000000 block_time=2"
- name: Set rpc url value
- name: Set RPC URL value
id: url
run: |
terraform output -raw aws_lb_ext_domain | grep -o -E '^ext[^:]*' > rpc_url.txt
Expand Down

0 comments on commit 6ca83e4

Please sign in to comment.