testing streaming directly from bucket #15
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
name: Publish to dockerhub and perform a deploy on cloud run | ||
on: | ||
push: | ||
branches: ["develop", "staging"] | ||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 | ||
with: | ||
context: . | ||
push: true | ||
tags: vnguyen/openbeta-media-server:staging | ||
- 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: "staging-media-server" | ||
image: "vnguyen/openbeta-media-server:staging" | ||
env_vars: | | ||
Check failure on line 44 in .github/workflows/deploy-staging.yml GitHub Actions / Publish to dockerhub and perform a deploy on cloud runInvalid workflow file
|
||
STORAGE_BUCKET=openbeta-staging | ||
APP_VERSION=${{ GITHUB_SHA }} | ||
- name: "Use output" | ||
run: 'curl "${{ steps.deploy.outputs.url }}"' |