diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 951cd463dfd20b97e7d79c194aecc649a80b92b2..1ad5c302b7e7d513a2cfdb0d71e4dc0c6aad593a 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 +