From 654c334870f46137d0ddddbdc25c61d09195e79d Mon Sep 17 00:00:00 2001 From: Mikolaj Gasior Date: Fri, 13 Jan 2023 14:29:25 +0100 Subject: [PATCH 1/6] Fix invalid variable used for sha_short --- .github/workflows/deploy-testnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-testnet.yml b/.github/workflows/deploy-testnet.yml index 41bff4f71e..f124ae8ce4 100644 --- a/.github/workflows/deploy-testnet.yml +++ b/.github/workflows/deploy-testnet.yml @@ -82,8 +82,8 @@ jobs: - name: S3 CI | Download release runtime from S3 bucket shell: bash env: - S3BUCKET_URL: s3://${{ secrets.CI_MAINNET_S3BUCKET_NAME }}/builds/aleph-node/commits/${{ steps.get_branch.outputs.sha_short }}/aleph-runtime - S3BUCKET_FILE: aleph-runtime-${{ steps.get_branch.outputs.sha_short }}.tar.gz + S3BUCKET_URL: s3://${{ secrets.CI_MAINNET_S3BUCKET_NAME }}/builds/aleph-node/commits/${{ steps.vars.outputs.sha_short }}/aleph-runtime + S3BUCKET_FILE: aleph-runtime-${{ steps.vars.outputs.sha_short }}.tar.gz run: | aws s3 cp ${{ env.S3BUCKET_URL }}/${{ env.S3BUCKET_FILE }} ${{ env.S3BUCKET_FILE }} @@ -92,7 +92,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: files: | - aleph-runtime-${{ steps.get_branch.outputs.sha_short }}.tar.gz + aleph-runtime-${{ steps.vars.outputs.sha_short }}.tar.gz - name: GIT | Checkout aleph-apps repo uses: actions/checkout@master From a90627ae64ad6e2f51c404f780721f6a95c25f54 Mon Sep 17 00:00:00 2001 From: Mikolaj Gasior Date: Thu, 16 Feb 2023 20:28:09 +0100 Subject: [PATCH 2/6] Change setting github output in the workflow --- .github/workflows/deploy-testnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-testnet.yml b/.github/workflows/deploy-testnet.yml index f124ae8ce4..c480752bea 100644 --- a/.github/workflows/deploy-testnet.yml +++ b/.github/workflows/deploy-testnet.yml @@ -23,8 +23,8 @@ jobs: id: vars shell: bash run: | - echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" - echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + echo "branch=$(echo ${GITHUB_REF##*/})" >> $GITHUB_OUTPUT + echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 From dc1c3cdf53fe59299796ecdcbbdf5cea558423be Mon Sep 17 00:00:00 2001 From: Mikolaj Gasior Date: Thu, 16 Feb 2023 20:34:45 +0100 Subject: [PATCH 3/6] Remove unnecessary 'echo' --- .github/workflows/deploy-testnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-testnet.yml b/.github/workflows/deploy-testnet.yml index c480752bea..20c89ae257 100644 --- a/.github/workflows/deploy-testnet.yml +++ b/.github/workflows/deploy-testnet.yml @@ -23,7 +23,7 @@ jobs: id: vars shell: bash run: | - echo "branch=$(echo ${GITHUB_REF##*/})" >> $GITHUB_OUTPUT + echo "branch=${GITHUB_REF##*/}" >> $GITHUB_OUTPUT echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Configure AWS credentials From fd752ce7b977282081d4746168015581b479f46b Mon Sep 17 00:00:00 2001 From: Mikolaj Gasior Date: Thu, 16 Feb 2023 20:46:38 +0100 Subject: [PATCH 4/6] Remove unnecessary AWS_REGION env in the ECR login step --- .github/workflows/deploy-testnet.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy-testnet.yml b/.github/workflows/deploy-testnet.yml index 20c89ae257..8c3a740c70 100644 --- a/.github/workflows/deploy-testnet.yml +++ b/.github/workflows/deploy-testnet.yml @@ -40,8 +40,6 @@ jobs: registry: public.ecr.aws username: ${{ secrets.AWS_MAINNET_ACCESS_KEY_ID }} password: ${{ secrets.AWS_MAINNET_SECRET_ACCESS_KEY }} - env: - AWS_REGION: us-east-1 - name: Tag and push image for Testnet env: From f5f9cb7b2e6f045069e102c196b08fe034a663eb Mon Sep 17 00:00:00 2001 From: Mikolaj Gasior Date: Thu, 16 Feb 2023 21:18:55 +0100 Subject: [PATCH 5/6] Empty commit to test signing From f5809eed46d3833a70cc30e283f7679c0123ced5 Mon Sep 17 00:00:00 2001 From: Mikolaj Gasior Date: Thu, 16 Feb 2023 21:22:41 +0100 Subject: [PATCH 6/6] Empty commit to test signing