Skip to content

Commit

Permalink
feat: adds AWS/Earthly setup steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Jun 2, 2023
1 parent dcfcbf6 commit c960738
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -3,10 +3,17 @@ name: Build CLI image
on:
push:

env:
AWS_REGION: eu-central-1
AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: input-output-hk/catalyst-ci/actions/setup@actions
with:
earthly_version: 0.7.6
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
earthly_version: 0.7.6
satellite_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
23 changes: 21 additions & 2 deletions actions/setup/action.yml
@@ -1,6 +1,12 @@
name: CI Setup
description: Performs required steps to setup CI
inputs:
aws_role_arn:
description: The ARN of the CI role (used for fetching secrets)
required: true
aws_region:
description: The AWS region to use
required: true
cli_version:
description: The version of the CI CLI to install
required: false
Expand All @@ -9,6 +15,9 @@ inputs:
description: The version of Earthly to install
required: false
default: latest
satellite_address:
description: Address to the remote Earthly satellite
required: true
runs:
using: composite
steps:
Expand All @@ -23,6 +32,16 @@ runs:
-L https://github.com/input-output-hk/catalyst-ci/releases/download/v${{ inputs.cli_version }}/ci-linux-amd64 \
-o /usr/bin/ci
sudo chmod +x /usr/bin/ci
- name: Check
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ inputs.aws_role_arn }}
aws-region: ${{ inputs.aws_region }}
- name: Setup Earthly environment
shell: bash
run: mkdir -p /tmp/certs && ci setup /tmp/certs
- uses: actions/checkout@v3
- name: Test
shell: bash
run: ci --help
run: |
earthly --buildkit-host "tcp://${{ inputs.satellite_address }}:8372" ./cli+build

0 comments on commit c960738

Please sign in to comment.