1
1
Fork 0
matrix/.gitlab-ci.yml.paused

62 lines
2.0 KiB
Plaintext
Raw Normal View History

2021-09-10 12:06:00 +02:00
# you can delete this line if you're not using Docker
# image: busybox:latest
image: ubuntu:20.04
2021-09-10 12:06:00 +02:00
2021-09-11 00:18:08 +02:00
variables:
GIT_DEPTH: 2
2021-09-11 00:18:08 +02:00
2021-09-10 12:06:00 +02:00
before_script:
- echo "Before script section"
- echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details"
2021-09-11 01:08:09 +02:00
- export DEBIAN_FRONTEND=noninteractive
2021-09-11 01:12:54 +02:00
- apt-get update
2021-09-23 15:56:20 +02:00
- apt-get install -yqqf bash git pgp python3-pip
2021-09-11 18:11:26 +02:00
# - git config --global user.email "$GITLAB_USER_EMAIL"
# - git config --global user.name "$GIT_USER_NAME"
2021-09-11 18:13:28 +02:00
- git config --global user.email "pdns@pm.me"
- git config --global user.name "My Privacy DNS"
- git remote set-url origin https://mypdns:$mypdns_CI_ACCESS_TOKEN@mypdns.org/$CI_PROJECT_PATH.git
2021-09-10 12:06:00 +02:00
after_script:
- echo "After script section"
- echo "For example you might do some clean up here"
2021-09-11 00:18:08 +02:00
- echo -e "After script section...\n"
2021-09-11 12:39:39 +02:00
- git add .
- git commit -m "Source sorted by CI runner `date '+%F %T %Z %z'`"
2021-09-11 12:39:39 +02:00
- git status
- git push "https://mypdns:${MYPDNS_CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci
2021-09-10 12:06:00 +02:00
2021-09-11 00:18:08 +02:00
build:
2021-09-10 12:06:00 +02:00
stage: build
2021-09-11 00:18:08 +02:00
only:
- master
- merge_requests
2021-09-10 12:06:00 +02:00
script:
- echo "Do your build here"
2021-09-23 15:57:56 +02:00
- pip3 install -q mypdns
2021-12-04 12:49:15 +01:00
# - git checkout -b "${CI_COMMIT_REF_NAME}"
- find "$CI_PROJECT_DIR/source/" -type f -name '*.list' -exec bash -c "sort -i -u -f '{}' -o '{}' " \;
2021-12-01 12:24:26 +01:00
# - bash "$CI_PROJECT_DIR/scripts/update_active_lists.sh"
2021-09-10 12:06:00 +02:00
2021-09-11 12:39:39 +02:00
# test1:
# stage: test
# script:
# - echo "Do a test here"
# - echo "For example run a test suite"
2021-09-10 12:06:00 +02:00
2021-09-11 12:39:39 +02:00
# test2:
# stage: test
# script:
# - echo "Do another parallel test here"
# - echo "For example run a lint test"
2021-09-10 12:06:00 +02:00
2021-09-11 12:39:39 +02:00
# deploy1:
# stage: deploy
# script:
# - echo "Do your deploy here"
# - git add .
# - git commit -m "Auto committed from the CI runner `date '+%F %T %Z %z'`"
# - git status
2021-09-11 17:43:39 +02:00
# - git push "https://${GITLAB_USER_LOGIN}:${MYPDNS_CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci