19 lines
611 B
YAML
19 lines
611 B
YAML
image: python:3-alpine
|
|
|
|
stages:
|
|
- execution
|
|
|
|
execution:
|
|
stage: execution
|
|
script:
|
|
- apk update && apk add gettext && apk add git
|
|
- pip install -r requirements.txt
|
|
- envsubst < envset.sh | sh
|
|
- python convertkit-backup.py
|
|
- git remote set-url origin https://${GITLAB_USER_ID}:${CI_PUSH_TOKEN}@git.francoispelletier.org/${CI_PROJECT_PATH}.git
|
|
- git config --global user.email ${GITLAB_USER_EMAIL}
|
|
- git config --global user.name ${GITLAB_USER_ID}
|
|
- sh merge_gen.sh
|
|
variables:
|
|
CONVERTKIT_API_KEY: ${CONVERTKIT_API_KEY}
|
|
CONVERTKIT_API_SECRET: ${CONVERTKIT_API_SECRET}
|