-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix role-to-assume if statement for cardano-services CI
- Loading branch information
1 parent
af12043
commit a4962f2
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
- uses: aws-actions/[email protected] | ||
with: | ||
aws-region: us-east-1 | ||
role-to-assume: ${{ github.ref == 'refs/heads/master' && 'arn:aws:iam::926093910549:role/eks-admin' | ||
role-to-assume: ${{ contains(github.ref, "release/") && 'arn:aws:iam::926093910549:role/eks-admin' | ||
|| 'arn:aws:iam::926093910549:role/eks-devs' }} | ||
- name: 🚀 Deploy | ||
run: 'echo "yes" | nix run .#cardano-services.${{inputs.target}}.${{inputs.action}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
extraSteps = lib.singleton { | ||
uses = "aws-actions/[email protected]"; | ||
"with" = { | ||
role-to-assume = "\${{ github.ref == 'refs/heads/master' && 'arn:aws:iam::926093910549:role/eks-admin' || 'arn:aws:iam::926093910549:role/eks-devs' }}"; | ||
role-to-assume = "\${{ contains(github.ref, \"release/\") && 'arn:aws:iam::926093910549:role/eks-admin' || 'arn:aws:iam::926093910549:role/eks-devs' }}"; | ||
aws-region = "us-east-1"; | ||
}; | ||
}; | ||
|