From 50b2eae48726f9730988ba51402d7cfd65e6bfe1 Mon Sep 17 00:00:00 2001 From: Iacami Gevaerd Date: Thu, 2 Nov 2023 14:16:16 -0300 Subject: [PATCH] wip --- .github/workflows/docker.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6953f61..bd7e2db 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -16,7 +16,8 @@ jobs: permissions: contents: read packages: write - # + id-token: "write" + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -33,3 +34,18 @@ jobs: context: . push: true tags: vnguyen/openbeta-media-server:latest + + - id: "auth" + name: "Authenticate to Google Cloud" + uses: "google-github-actions/auth@v1" + with: + credentials_json: "${{ secrets.GOOGLE_CLOUD_CREDENTIALS }}" + + - id: "deploy" + uses: "google-github-actions/deploy-cloudrun@v1" + with: + service: "media-server" + image: "vnguyen/openbeta-media-server" + + - name: "Use output" + run: 'curl "${{ steps.deploy.outputs.url }}"'