From 2b72b2ea4379f87daa800617b3b3e1cdef15848f Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Thu, 6 Jun 2024 11:49:49 +0200 Subject: [PATCH] Delete .github/workflows/deploy-to-cloud-run.yml --- .github/workflows/deploy-to-cloud-run.yml | 92 ----------------------- 1 file changed, 92 deletions(-) delete mode 100644 .github/workflows/deploy-to-cloud-run.yml diff --git a/.github/workflows/deploy-to-cloud-run.yml b/.github/workflows/deploy-to-cloud-run.yml deleted file mode 100644 index 4aa2645d..00000000 --- a/.github/workflows/deploy-to-cloud-run.yml +++ /dev/null @@ -1,92 +0,0 @@ -on: - workflow_call: - inputs: - name: - required: true - type: string - self-url: - required: false - type: string - log-level: - required: false - type: string - default: info - no-cache: - required: false - type: boolean - default: false - secrets: - DOCKER_REPOSITORY: - required: true - GOOGLE_PROJECT_ID: - required: true - WORKLOAD_IDENTITY_PROVIDER: - required: true - SERVICE_ACCOUNT_EMAIL: - required: true - -permissions: - id-token: write - contents: read - -jobs: - deploy-to-cloud-run: - name: ${{ inputs.name }} → Cloud Run - runs-on: ubuntu-latest - - env: - IMAGE_NAME: ${{ secrets.DOCKER_REPOSITORY }}/${{ inputs.name }} - - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v4 - - - name: Authenticate with Google 🔑 - id: auth - uses: google-github-actions/auth@v1 - with: - token_format: access_token - project_id: ${{ secrets.GOOGLE_PROJECT_ID }} - workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} - service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }} - - - name: Authenticate with Docker 🔑 - uses: docker/login-action@v2 - with: - registry: europe-north1-docker.pkg.dev - username: oauth2accesstoken - password: ${{ steps.auth.outputs.access_token }} - - - name: Docker meta 🏷 - id: meta - uses: docker/metadata-action@v4 - with: - images: ${{ env.IMAGE_NAME }} - # flavor: latest=true - tags: | - type=sha,prefix={{branch}}- - - - name: Set up Docker Buildx 🔨 - id: buildx - uses: docker/setup-buildx-action@v2 - - - name: Build and push to Artifact Registry 🛠 - uses: docker/build-push-action@v4 - with: - context: ./ - file: ./Dockerfile - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - no-cache: ${{ inputs.no-cache }} - cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:latest - cache-to: type=inline - - - name: Deploy with Google Cloud Run 🚀 - uses: google-github-actions/deploy-cloudrun@v1 - with: - service: ${{ inputs.name }} - image: ${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }} - region: europe-north1 - env_vars: - LOG_LEVEL=${{ inputs.log-level }},SELF_URL=${{ inputs.self-url }}