From eaa6624d26e26177bf923fe19407e197b2acfaab Mon Sep 17 00:00:00 2001 From: Geoff Lamperd Date: Mon, 10 Jun 2024 17:16:43 +1000 Subject: [PATCH 1/4] fix: secrets not substituted correctly --- .github/workflows/setup-ceremony.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/setup-ceremony.yml b/.github/workflows/setup-ceremony.yml index 45bbbe3..9933780 100644 --- a/.github/workflows/setup-ceremony.yml +++ b/.github/workflows/setup-ceremony.yml @@ -5,6 +5,9 @@ on: push: branches: [ main, staging, dev ] +env: + AWS_REGION: eu-central-1 + jobs: # first we start a custom runner start-runner: @@ -23,7 +26,7 @@ jobs: with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.AWS_REGION }} + aws-region: ${{ env.AWS_REGION }} - name: Start EC2 runner id: start-ec2-runner @@ -166,7 +169,7 @@ jobs: with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.AWS_REGION }} + aws-region: ${{ env.AWS_REGION }} - name: Stop EC2 runner uses: machulav/ec2-github-runner@v2 From b42e632716f7c830828736ec0aa5856ce22b964c Mon Sep 17 00:00:00 2001 From: Geoff Lamperd Date: Mon, 10 Jun 2024 17:25:47 +1000 Subject: [PATCH 2/4] fix: secrets not subtituted properly --- .github/workflows/setup-ceremony.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/setup-ceremony.yml b/.github/workflows/setup-ceremony.yml index 9933780..65c34a5 100644 --- a/.github/workflows/setup-ceremony.yml +++ b/.github/workflows/setup-ceremony.yml @@ -167,7 +167,7 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v2 with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ env.AWS_REGION }} From debd94aba58bc18443cef1ab9f3cf5d066e190ad Mon Sep 17 00:00:00 2001 From: Geoff Lamperd Date: Mon, 10 Jun 2024 17:27:00 +1000 Subject: [PATCH 3/4] temp lock phase2cli version --- .github/workflows/setup-ceremony.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/setup-ceremony.yml b/.github/workflows/setup-ceremony.yml index 65c34a5..a2889f0 100644 --- a/.github/workflows/setup-ceremony.yml +++ b/.github/workflows/setup-ceremony.yml @@ -63,7 +63,7 @@ jobs: # install p0tion - name: Install p0tion globally - run: npm install -g @p0tion/phase2cli + run: npm install -g @p0tion/phase2cli@0.0.0-0aa6a31 # write env to file - name: Write env locally @@ -116,7 +116,7 @@ jobs: # install p0tion - name: Install p0tion globally - run: npm install -g @p0tion/phase2cli + run: npm install -g @p0tion/phase2cli@0.0.0-0aa6a31 # write env to file - name: Write env locally From d68c20066f7386ce8198d203ad96c6477a7177c9 Mon Sep 17 00:00:00 2001 From: Geoff Lamperd Date: Mon, 10 Jun 2024 20:47:30 +1000 Subject: [PATCH 4/4] fix: revert to default version of p0tion --- .github/workflows/setup-ceremony.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/setup-ceremony.yml b/.github/workflows/setup-ceremony.yml index a2889f0..65c34a5 100644 --- a/.github/workflows/setup-ceremony.yml +++ b/.github/workflows/setup-ceremony.yml @@ -63,7 +63,7 @@ jobs: # install p0tion - name: Install p0tion globally - run: npm install -g @p0tion/phase2cli@0.0.0-0aa6a31 + run: npm install -g @p0tion/phase2cli # write env to file - name: Write env locally @@ -116,7 +116,7 @@ jobs: # install p0tion - name: Install p0tion globally - run: npm install -g @p0tion/phase2cli@0.0.0-0aa6a31 + run: npm install -g @p0tion/phase2cli # write env to file - name: Write env locally