From 55e10833dee049581de5d112983659633b508864 Mon Sep 17 00:00:00 2001
From: Remi Cresson <remi.cresson@inrae.fr>
Date: Thu, 23 Feb 2023 13:02:22 +0100
Subject: [PATCH] 1st commit

---
 .gitlab-ci.yml | 23 +++++++++++++++++++++++
 README.md      |  4 ++--
 2 files changed, 25 insertions(+), 2 deletions(-)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..4e9fea8
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,23 @@
+stages:
+  - docker
+
+Build docker image:
+  stage: docker
+  image: docker/compose:1.29.2
+  allow_failure: false
+  tags: [ dind ]
+  variables:
+    IMG: $CI_REGISTRY_IMAGE:latest
+    DOCKER_TLS_CERTDIR: ""
+    DOCKER_HOST: tcp://docker:2375
+  services:
+    - name: docker:dind
+      command: [ dockerd, '-H', 'tcp://0.0.0.0:2375' ]
+  before_script:
+    - echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
+  script:
+    - wget https://github.com/stac-utils/stac-fastapi/archive/refs/tags/2.4.3.zip
+    - unzip *.zip
+    - cd stac-fastapi-2.4.3
+    - docker build --tag $IMG .
+    - docker push $IMG
diff --git a/README.md b/README.md
index 0f02aa9..7fb38ba 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
-# FastAPI pgstac
+# STAC FastAPI (pgstac backend)
+
 
-STAC API with FastAPI (pgstac backend)
\ No newline at end of file
-- 
GitLab