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 }}"'