From 32b584126e079f49640486f3d3e830baf29914f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com>
Date: Sat, 20 Aug 2022 22:52:04 +0200
Subject: [PATCH] Dockerize

---
 .gitignore     |  1 +
 .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++
 Dockerfile     |  4 ++++
 3 files changed, 34 insertions(+)
 create mode 100644 .gitlab-ci.yml
 create mode 100644 Dockerfile

diff --git a/.gitignore b/.gitignore
index 639b29a..0156317 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 .idea
 .vscode
 .vs
+prez.html
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..8d07bbd
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,29 @@
+stages:
+  - 🔨
+  - 📦
+  - ☸
+
+marp build:
+  stage: 🔨
+  image: marpteam/marp-cli:v2.1.3
+  script:
+    - marp --html prez.md
+
+container image:
+  stage: 📦
+  image: registry.gitlab.com/disappointment-industries/container-images/buildah-image:latest
+  variables: 
+    CI_REGISTRY_IMAGE: docker.io/miketth/storage-prez
+  before_script:
+    - export STORAGE_DRIVER=vfs
+    - export _BUILDAH_STARTED_IN_USERNS=""
+    - export BUILDAH_ISOLATION=chroot
+    - export REGISTRY_AUTH_FILE=${HOME}/auth.json
+    - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
+  script:
+    - buildah manifest create prez
+    - cp prez-amd64 prez
+    - buildah bud --tag "${CI_REGISTRY_IMAGE}:amd64" --manifest prez --arch amd64 .
+    - cp prez-arm64 prez
+    - buildah bud --tag "${CI_REGISTRY_IMAGE}:arm64" --manifest prez --arch arm64 .
+    - buildah manifest push --all prez docker://"${CI_REGISTRY_IMAGE}"
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..7e01fe2
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,4 @@
+FROM nginx:latest
+
+COPY prez.html /usr/share/nginx/html/index.html
+
-- 
GitLab