Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix: test automatic revision with terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschall committed Jun 7, 2023
1 parent 2d80415 commit c78efd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,27 +88,3 @@ jobs:
working-directory: terraform
env:
TF_VAR_release_version: ${{ needs.release.outputs.new_release_version }}

deploy-cloudrun:
name: Deploy to Cloud Run
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'

steps:
- uses: 'actions/checkout@v3'

- uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: 'projects/655814648425/locations/global/workloadIdentityPools/casfea22-pool/providers/casfea22-provider'
service_account: '[email protected]'

- id: 'deploy'
uses: 'google-github-actions/deploy-cloudrun@v1'
with:
service: 'app-yeahyeahyeah'
image: 'europe-west6-docker.pkg.dev/casfea22/app-yeahyeahyeah-docker/app-yeahyeahyeah:latest'

- name: 'Use output'
run: 'curl "${{ steps.deploy.outputs.url }}"'
2 changes: 1 addition & 1 deletion terraform/cloud-run.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "google_cloud_run_service" "app-yeahyeahyeah" {
template {
spec {
containers {
image = "europe-west6-docker.pkg.dev/casfea22/app-yeahyeahyeah-docker/app-yeahyeahyeah"
image = "europe-west6-docker.pkg.dev/casfea22/app-yeahyeahyeah-docker/app-yeahyeahyeah:${var.release_version}"

resources {
limits = {
Expand Down
4 changes: 4 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
variable "release_version" {
type = string
}

locals {
name = "app-yeahyeahyeah"
gcp_region = "europe-west6"
Expand Down

0 comments on commit c78efd4

Please sign in to comment.