From 409d1be9090c0ace0557574d19d430549f02b3de Mon Sep 17 00:00:00 2001 From: HugoTextNow <81644448+HugoTextNow@users.noreply.github.com> Date: Thu, 7 Dec 2023 15:35:52 -0800 Subject: [PATCH 1/4] Switching to our self-hosted runners --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f4a61af..4470a84 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -22,7 +22,7 @@ permissions: jobs: build_release: - runs-on: ubuntu-latest + runs-on: textnow if: github.event_name == 'push' outputs: build_version: ${{ steps.prepare.outputs.build_version }} From 052ed9b930ebac0f8f51634be6249c8c7e2f3486 Mon Sep 17 00:00:00 2001 From: HugoTextNow <81644448+HugoTextNow@users.noreply.github.com> Date: Thu, 7 Dec 2023 15:39:30 -0800 Subject: [PATCH 2/4] Tweaking workflow --- .github/workflows/docker-publish.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4470a84..42aa26b 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -30,15 +30,9 @@ jobs: - name: Pulling code uses: actions/checkout@v2 - - name: Configure AWS - uses: aws-actions/configure-aws-credentials@v2 - with: - aws-region: us-east-1 - role-to-assume: ${{ secrets.IAM_ROLE }} - - name: Login to Amazon ECR id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 + uses: Enflick/composite-actions/actions/aws/login-to-ecr@v0.0.49 - name: Preparing id: prepare From ebc9f95f76ec56732c4dfe3f42af23c5a331cbb4 Mon Sep 17 00:00:00 2001 From: HugoTextNow <81644448+HugoTextNow@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:02:26 -0800 Subject: [PATCH 3/4] Apparently this repo doesn't have access to `composite-actions` --- .github/workflows/docker-publish.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 42aa26b..9aed3f6 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -29,10 +29,15 @@ jobs: steps: - name: Pulling code uses: actions/checkout@v2 - + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-region: us-east-1 + role-to-assume: arn:aws:iam::695141026374:role/gha-runners-role - name: Login to Amazon ECR id: login-ecr - uses: Enflick/composite-actions/actions/aws/login-to-ecr@v0.0.49 + uses: aws-actions/amazon-ecr-login@v2 - name: Preparing id: prepare From 484ec465d730a6ea8bbc6ff96ff083de0288ed90 Mon Sep 17 00:00:00 2001 From: HugoTextNow <81644448+HugoTextNow@users.noreply.github.com> Date: Thu, 7 Dec 2023 16:10:33 -0800 Subject: [PATCH 4/4] Added curl install --- .github/workflows/docker-publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9aed3f6..afe6bb9 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Pulling code uses: actions/checkout@v2 - + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -39,6 +39,9 @@ jobs: id: login-ecr uses: aws-actions/amazon-ecr-login@v2 + - name: Install curl + run: sudo apt-get update && sudo apt-get install -y curl + - name: Preparing id: prepare env: