Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Aug 30, 2024
1 parent 7b657e9 commit 42e3159
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
8 changes: 8 additions & 0 deletions blueprint.cue
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
version: "1.0"
ci: {
providers: {
aws: {
region: "eu-central-1"
role: "arn:aws:iam::332405224602:role/ci"
}
}
}
17 changes: 15 additions & 2 deletions forge/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ inputs:
runs:
using: composite
steps:
# If the local version of forge is requested, we try to build (and cache) it
# locally with Earthly
- name: Install Earthly
uses: earthly/actions-setup@v1
if: inputs.forge_version == 'local'
Expand All @@ -29,6 +31,17 @@ runs:
shell: bash
run: |
earthly --artifact ./forge/cli+build/forge /usr/local/bin/forge
- name: Check version
- name: Get provider configuration
shell: bash
run: forge version
run: |
BP=$(forge blueprint dump .)
AWS=$(echo "$BP" | jq -r .ci.providers.aws)
if [[ "$AWS" -ne "null" ]]; then
AWS_REGION=$(echo "$BP" | jq -r .ci.providers.aws.region)
AWS_ROLE=$(echo "$BP" | jq -r .ci.providers.aws.role)
fi
echo "$AWS_REGION"
echo "$AWS_ROLE"

0 comments on commit 42e3159

Please sign in to comment.