From f356986d2f7166a531d758a976b48c1d839d34fa Mon Sep 17 00:00:00 2001 From: Ngure Nyaga Date: Thu, 8 Jul 2021 11:26:14 +0300 Subject: [PATCH] feat: enable building of Docker images via cloud build --- Dockerfile | 1 + cloudbuild.yaml | 11 +++++++++++ entrypoint | 1 + start | 1 + 4 files changed, 14 insertions(+) create mode 120000 Dockerfile create mode 100644 cloudbuild.yaml create mode 120000 entrypoint create mode 120000 start diff --git a/Dockerfile b/Dockerfile new file mode 120000 index 00000000..6c8e1ef4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1 @@ +compose/production/django/Dockerfile \ No newline at end of file diff --git a/cloudbuild.yaml b/cloudbuild.yaml new file mode 100644 index 00000000..6a8e9902 --- /dev/null +++ b/cloudbuild.yaml @@ -0,0 +1,11 @@ +steps: + - name: "gcr.io/cloud-builders/docker" + args: + [ + "build", + "-t", + "europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle:$COMMIT_SHA", + ".", + ] +images: + - "europe-west1-docker.pkg.dev/$PROJECT_ID/sghi/mle:$COMMIT_SHA" diff --git a/entrypoint b/entrypoint new file mode 120000 index 00000000..1518c133 --- /dev/null +++ b/entrypoint @@ -0,0 +1 @@ +compose/production/django/entrypoint \ No newline at end of file diff --git a/start b/start new file mode 120000 index 00000000..0148afee --- /dev/null +++ b/start @@ -0,0 +1 @@ +compose/production/django/start \ No newline at end of file