Skip to content

Commit

Permalink
ci: fix role-to-assume if statement for cardano-services CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gytis-ivaskevicius committed Oct 2, 2024
1 parent af12043 commit a4962f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cardano-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion nix/cardano-services/deployments/ci.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
};
Expand Down

0 comments on commit a4962f2

Please sign in to comment.