Skip to content

Commit

Permalink
Make AWS run
Browse files Browse the repository at this point in the history
  • Loading branch information
kang-makes committed Aug 2, 2022
1 parent 55d38ef commit 7104c97
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/push_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,39 @@ jobs:
name: Run unit tests on *Nix
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Checkout project's source code
uses: actions/checkout@v3
- name: Checkout infra-agent's code
uses: actions/checkout@v3
with:
repository: newrelic/infrastructure-agent
ref: master
path: ./.github/actions/infrastructure-agent
- name: Login to DockerHub
if: ${{env.DOCKER_LOGIN_AVAILABLE}}
uses: docker/login-action@v1
with:
username: ${{ secrets.OHAI_DOCKER_HUB_ID }}
password: ${{ secrets.OHAI_DOCKER_HUB_PASSWORD }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: "arn:aws:iam::801306408012:role/terraform-20220802122050509800000001"
aws-region: us-east-1

- name: Unit tests
run: make ci/test

- name: Run external runner action
uses: ./.github/actions/infrastructure-agent/.github/actions/external_runner
with:
aws_region: us-east-1
container_make_target: "terraform/apply"
ecs_cluster_name: yet-to-be-defined
task_definition_name: yet-to-be-defined
cloud_watch_logs_group_name: yet-to-be-defined
cloud_watch_logs_stream_name: yet-to-be-defined

test-build:
name: Test binary compilation for all platforms:arch
runs-on: ubuntu-20.04
Expand Down
2 changes: 2 additions & 0 deletions terraform_modules/aws_managed/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7104c97

Please sign in to comment.