Switch to LXC Runner

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-12-09 21:08:04 +05:30
parent f1d22a6e22
commit 17dc989c1b
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5
2 changed files with 10 additions and 15 deletions

8
.build.sh Normal file
View file

@ -0,0 +1,8 @@
#! /bin/sh
apk update && apk add python3 py3-pip git go
git config --global user.name baalajimaestro
git config --global user.email me@baalajimaestro.me
pip3 install GitPython
export HUGO_ENV=production
python3 .buildpush.py

View file

@ -1,17 +1,4 @@
stages:
- build-and-push
image:
name: klakegg/hugo:ext-alpine
entrypoint: [""]
before_script:
- apk update && apk add python3 py3-pip git go
- git config --global user.name baalajimaestro
- git config --global user.email me@baalajimaestro.me
- pip3 install GitPython
build-and-push:
stage: build-and-push
variables:
HUGO_ENV: production
stage: build
script:
- python3 .buildpush.py
- docker run -t -v $(pwd):/app -w /app --entrypoint="" -e BASE_REPO_TOKEN="$BASE_REPO_TOKEN" -e BASE_REPO_USERNAME="$BASE_REPO_USERNAME" -e CONTENT_REPO_GIT="$CONTENT_REPO_GIT" -e CONTENT_REPO_TOKEN="$CONTENT_REPO_TOKEN" -e CONTENT_REPO_USERNAME="$CONTENT_REPO_USERNAME" -e OUT_DIR="$OUT_DIR" klakegg/hugo:ext-alpine sh .build.sh