From d88dcd81bf750cf2538c624f24801d1ffcd2464d Mon Sep 17 00:00:00 2001 From: sudeep Date: Mon, 16 Dec 2024 10:41:21 +0000 Subject: [PATCH] test cloud build --- cloudbuild.yaml | 5 +++++ src/main.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 cloudbuild.yaml diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 0000000..3df648e --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,5 @@ +steps: + - name: 'gcr.io/cloud-builders/docker' + args: ['build', '-f', 'Dockerfile', '-t', 'europe-west2-docker.pkg.dev/ons-cirmig-sandbox/cir-converter-service/cir-converter-service:latest', '.'] + - name: 'gcr.io/cloud-builders/docker' + args: ['push', 'europe-west2-docker.pkg.dev/ons-cirmig-sandbox/cir-converter-service/cir-converter-service:latest'] \ No newline at end of file diff --git a/src/main.py b/src/main.py index 3b8f9a4..2f33b3e 100644 --- a/src/main.py +++ b/src/main.py @@ -6,4 +6,4 @@ # Simple hello world endpoint @app.get("/") def index() -> dict: - return {"message": "Hello World!"} + return {"message": "Hello World! - Test Cloud Build!"}