-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
31 lines (26 loc) · 838 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
stages:
- build
- deploy
html-build:
image: octobus/ci-py3-hgext3rd
stage: build
script:
- make build
#deploy-test:
# image: registry.heptapod.net/octobus/ci-dockerfiles/ci-website
# stage: deploy
# script:
# - make build # use artefact eventually
# - netlify deploy --site=056ee9b4-122d-4b02-bf62-5a2fc9776196 --auth="$NETLIFY_AUTH_TOKEN" --dir="public"
deploy:
# On a merge, regenerate the content and commit it to the repo
image: octobus/ci-py3-hgext3rd
stage: deploy
only:
- branch/default
script:
- set -ex
- make build
- hg add public
- hg commit public --user gitlab-runner -m"[skip ci] render site via gitlab runner"
- hg push -r default https://project_80_bo:${CI_PUSH}@foss.heptapod.net/pypy/pypy.org