From fc4befee94964df44d50e284ff8ea0dbb34ba444 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Mon, 8 Apr 2024 23:52:38 +0200 Subject: [PATCH] Build Docker image in CI --- .gitlab-ci.yml | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 951cd463..1ad5c302 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,16 @@ -image: alpine:latest +image: quay.io/buildah/stable:latest -variables: - GIT_SUBMODULE_STRATEGY: recursive - -pages: - stage: deploy +default: before_script: - - apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola - - apk add yarn - - yarn install + - buildah login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY} + +build: script: - - zola build - - cp _redirects public/ - artifacts: - paths: - - public/ - only: - - master + - buildah bud -t teckids.org:latest + interruptible: true + retry: 1 + +deploy: + script: + - buildah push + -- GitLab