Skip to content

Commit

Permalink
Merge pull request #38 from BenjaminBruenau/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
BenjaminBruenau authored Feb 16, 2024
2 parents befd669 + 69a14f1 commit 7ef4e31
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 9 deletions.
44 changes: 36 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
deploy:
name: Release to Google Artifact Registry
name: Deploy to Google Kubernetes Engine
runs-on: ubuntu-latest
permissions:
contents: 'read'
Expand Down Expand Up @@ -37,15 +37,43 @@ jobs:
- name: Setup Terraform CLI
uses: hashicorp/setup-terraform@v2.0.2

- name: Terraform init validate and plan
run: |
terraform init
terraform validate
terraform plan
- name: Terraform init
id: init
run: terraform init
working-directory: ./.terraform

- name: Terraform plan
id: plan
run: terraform plan -no-color -var "project=${{vars.PROJECT_ID}}"
continue-on-error: true
working-directory: ./.terraform

- uses: actions/github-script@v6
env:
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
with:
script: |
const output = `#### Terraform Format and Style \`${{ steps.fmt.outcome }}\`
#### Terraform Initialization \`${{ steps.init.outcome }}\`
#### Terraform Validation \`${{ steps.validate.outcome }}\`
#### Terraform Plan \`${{ steps.plan.outcome }}\`
<details><summary>Show Plan</summary>
\`\`\`\n
${process.env.PLAN}
\`\`\`
</details>
*Created by: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;
- name: Terraform Plan Status
if: steps.plan.outcome == 'failure'
run: exit 1
working-directory: ./.terraform

- name: Terraform Apply
if: github.ref == 'refs/heads/main'
run: |
terraform apply -auto-approve -var "project=${{vars.PROJECT_ID}}"
working-directory: ./.terraform
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
token_format: access_token
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ secrets.SERVICE_ACCOUNT }}
access_token_lifetime: 300s
access_token_lifetime: 600s

- name: Login to Artifact Registry
uses: docker/login-action@v1
Expand All @@ -50,6 +50,7 @@ jobs:

- name: Build and Push Analysis Service
run: |
export SBT_OPTS="-Xmx4G"
sbt assembly
docker build -t analysis:0.1.0 .
docker tag analysis:0.1.0 ${{ vars.GCLOUD_REGION }}-docker.pkg.dev/${{vars.PROJECT_ID}}/ruettel-report-dev/analysis:0.1.0
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ minikube addons enable gcp-auth
```

### Installing RuettelReport Infrastructure


```shell
helm repo add spark-operator https://googlecloudplatform.github.io/spark-on-k8s-operator
helm repo add kong https://charts.konghq.com
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add fusionauth https://fusionauth.github.io/charts
helm repo add bitnami https://charts.bitnami.com/bitnami

helm install spark spark-operator/spark-operator --namespace spark-operator --create-namespace -f spark-operator-values.yaml

helm install mongodb bitnami/mongodb -f mongodb-values.yaml -n shared --create-namespace
Expand Down

0 comments on commit 7ef4e31

Please sign in to comment.