diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b60514..27e1534 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,12 +17,17 @@ # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml stages: # List of stages for jobs, and their order of execution + - prepare - sync +image: python:3.10 + +prepare-job: + stage: prepare + script: + - pip install confluence.md + sync-docs-job: # This job runs in the build stage, which runs first. stage: sync - image: curlimages/curl:latest script: - - curl -L https://github.com/Kerwood/confluence-updater/releases/latest/download/confluence-updater-x86_64-unknown-linux-musl -o confluence-updater - - chmod +x confluence-updater - - ./confluence-updater --fqdn https://imek.atlassian.net + - confluence.md --user $CU_USER --token $CU_SECRET --url https://imek.atlassian.net update --file README.md --title $(head -n1 README.md | cut -d' ' -f2-)