Skip to content

Disable gcp push

Disable gcp push #12

Workflow file for this run

name: Docker build
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
GKE_CLUSTER: bots
GKE_ZONE: us-central1-c
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v4
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# - id: 'auth'
# name: 'Authenticate to Google Cloud'
# uses: 'google-github-actions/auth@v0'
# with:
# token_format: 'access_token'
# workload_identity_provider: ${{ secrets.GCP_IDP }}
# service_account: ${{ secrets.GCP_SERVICEACCOUNT }}
# - name: Set up GKE credentials
# uses: google-github-actions/get-gke-credentials@v0
# with:
# cluster_name: ${{ env.GKE_CLUSTER }}
# location: ${{ env.GKE_ZONE }}
# - run: |
# kubectl rollout restart deployment/edi
# kubectl rollout restart deployment/fran