Switch to LXC Runner
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
f1d22a6e22
commit
17dc989c1b
8
.build.sh
Normal file
8
.build.sh
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue