From 7903af8b36fb944822251a2ee21724f169cac1dc Mon Sep 17 00:00:00 2001
From: Recolic Keghart <root@recolic.net>
Date: Thu, 16 May 2019 21:52:43 -0700
Subject: [PATCH] auto build

---
 buildspec.yaml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 buildspec.yaml

diff --git a/buildspec.yaml b/buildspec.yaml
new file mode 100644
index 0000000..ea48319
--- /dev/null
+++ b/buildspec.yaml
@@ -0,0 +1,26 @@
+version: 0.2
+
+env:
+  variables:
+    IMAGE_TAG: "latest"
+    IMAGE_REPO_NAME: "recolic/rserver-status"
+  parameter-store:
+    DOCKER_PSWD: "recolic_docker_pswd"
+
+phases:
+  pre_build:
+    commands:
+      - echo Logging in to Docker Hub...
+      - docker login -u recolic -p "$DOCKER_PSWD"
+      # Type the command to log in to your Docker Hub account here.
+  build:
+    commands:
+      - echo Build started on `date`
+      - echo Building the Docker image...
+      - docker build -t $IMAGE_REPO_NAME:$IMAGE_TAG .
+      - docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $IMAGE_REPO_NAME:$IMAGE_TAG
+  post_build:
+    commands:
+      - echo Build completed on `date`
+      - echo Pushing the Docker image...
+      - docker push $IMAGE_REPO_NAME:$IMAGE_TAG
-- 
GitLab