Skip to content

Update docker-image.yml #4

Update docker-image.yml

Update docker-image.yml #4

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "deployed" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: auth
name: Authenticate with Google Cloud
uses: google-github-actions/auth@v0
with:
token_format: access_token
workload_identity_provider: aws1
service_account: [email protected]
access_token_lifetime: 300s
- name: Build the Docker image
run: |-
cd ottpApi
docker build -t ottpapi .
docker tag ottpapi:latest asia-south1-docker.pkg.dev/ecomscraper/images/ottpapi:latest
docker push asia-south1-docker.pkg.dev/ecomscraper/images/ottpapi:latest
gcloud run deploy \
--image=asia-south1-docker.pkg.dev/ecomscraper/images/ottpapi:latest \
--platform=managed \
--region=asia-south1 \
--allow-unauthenticated