-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 Basic setup and simple health endpoint for cli client (#2)
- Loading branch information
Showing
22 changed files
with
2,797 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: infrastructure | ||
name: Deploy | ||
on: [pull_request] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
pull-requests: write | ||
jobs: | ||
deploy-infrastructure: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: hashicorp/setup-terraform@v3 | ||
|
||
- name: Build & Test lambda | ||
run: | | ||
pip3 install cargo-lambda | ||
rustup update stable && rustup default stable | ||
cargo lambda build --arm64 --release | ||
cargo test --verbose | ||
working-directory: infrastructure/health | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_OIDC_ASSUME_ROLE_ARN }} | ||
aws-region: eu-central-1 | ||
role-session-name: GitHub-OIDC-TF | ||
|
||
- name: Terraform Init | ||
id: init | ||
env: | ||
AWS_BUCKET_NAME: ${{ secrets.AWS_STATE_BUCKET_NAME }} | ||
run: terraform init --backend-config="bucket=${AWS_BUCKET_NAME}" | ||
|
||
- name: Terraform Validation | ||
id: validate | ||
run: terraform validate | ||
|
||
- name: Terraform Plan | ||
id: plan | ||
if: github.event == 'pull_request' | ||
run: terraform plan | ||
|
||
- name: Terraform Apply | ||
id: apply | ||
if: github.ref == 'refs/head/main' && github.event_name == 'push' | ||
run: terraform apply -auto-approve |
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 |
---|---|---|
@@ -1 +1 @@ | ||
# Strike | ||
# Strikes |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Oops, something went wrong.