Skip to content

Commit

Permalink
Merge pull request #3 from Enflick/SRE-3982-move-workflows-away-from-…
Browse files Browse the repository at this point in the history
…using-githubs-runners

SRE-3982 Move to self-hosted runners
  • Loading branch information
HugoTextNow authored Dec 8, 2023
2 parents 3d606ae + 484ec46 commit 1e50bb5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,25 @@ permissions:

jobs:
build_release:
runs-on: ubuntu-latest
runs-on: textnow
if: github.event_name == 'push'
outputs:
build_version: ${{ steps.prepare.outputs.build_version }}
steps:
- name: Pulling code
uses: actions/checkout@v2

- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.IAM_ROLE }}

role-to-assume: arn:aws:iam::695141026374:role/gha-runners-role
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
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
Expand Down

0 comments on commit 1e50bb5

Please sign in to comment.