From efbfaaaf52d176b8c618cca8f3b588dd219fa7ec Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 26 Jun 2022 17:54:51 +0100 Subject: [PATCH 1/6] add CI pipeline --- .woodpecker/.release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .woodpecker/.release.yml diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml new file mode 100644 index 0000000..21840c5 --- /dev/null +++ b/.woodpecker/.release.yml @@ -0,0 +1,20 @@ +pipeline: + build: + when: + event: + - push + secrets: + - SCW_ACCESS_KEY + - SCW_SECRET_KEY + - SCW_DEFAULT_ORGANIZATION_ID + image: python:3.10-slim + commands: + - apt-get update && apt-get install -y rclone + - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64 + - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli + - chmod +x scaleway-cli + - ./scaleway-cli object config install type=rclone + - pip install pipenv + - pipenv install + - pipenv run ./manage.sh all + - rclone sync site/ scaleway:akkoma-docs/$CI_COMMIT_BRANCH/ -- 2.43.0 From 7810272471661263e842ce369cdc932203aa424b Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 26 Jun 2022 17:56:49 +0100 Subject: [PATCH 2/6] add wget to CI build --- .woodpecker/.release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index 21840c5..7c9c3d4 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -9,7 +9,7 @@ pipeline: - SCW_DEFAULT_ORGANIZATION_ID image: python:3.10-slim commands: - - apt-get update && apt-get install -y rclone + - apt-get update && apt-get install -y rclone wget - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli - chmod +x scaleway-cli -- 2.43.0 From 9bcee787bae016e65d5697400bcaeac58e2de146 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 26 Jun 2022 17:58:31 +0100 Subject: [PATCH 3/6] make pipenv happy --- .woodpecker/.release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index 7c9c3d4..81ae0a7 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -7,6 +7,8 @@ pipeline: - SCW_ACCESS_KEY - SCW_SECRET_KEY - SCW_DEFAULT_ORGANIZATION_ID + environment: + CI: "true" image: python:3.10-slim commands: - apt-get update && apt-get install -y rclone wget -- 2.43.0 From 731f420d0b2d66177edd9426beed86b83065feca Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 26 Jun 2022 18:01:24 +0100 Subject: [PATCH 4/6] try setting on command --- .woodpecker/.release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index 81ae0a7..b1f0dd8 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -18,5 +18,5 @@ pipeline: - ./scaleway-cli object config install type=rclone - pip install pipenv - pipenv install - - pipenv run ./manage.sh all + - CI=true pipenv run ./manage.sh all - rclone sync site/ scaleway:akkoma-docs/$CI_COMMIT_BRANCH/ -- 2.43.0 From dcf510d7a6e4f03e3520b44ae25cb080a8627bda Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 26 Jun 2022 18:04:39 +0100 Subject: [PATCH 5/6] sync to pip --- .woodpecker/.release.yml | 5 ++--- Pipfile | 22 ++++++++++++++++++++-- requirements.txt | 21 +++++++++++++++++++++ 3 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 requirements.txt diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index b1f0dd8..5c97f07 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -16,7 +16,6 @@ pipeline: - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli - chmod +x scaleway-cli - ./scaleway-cli object config install type=rclone - - pip install pipenv - - pipenv install - - CI=true pipenv run ./manage.sh all + - pip install -r requirements.txt + - ./manage.sh all - rclone sync site/ scaleway:akkoma-docs/$CI_COMMIT_BRANCH/ diff --git a/Pipfile b/Pipfile index 3e538a5..d8f8450 100644 --- a/Pipfile +++ b/Pipfile @@ -6,5 +6,23 @@ verify_ssl = true [dev-packages] [packages] -mkdocs-material = "*" -markdown-include = "*" +mkdocs-material = "==8.1.8" +markdown-include = "==0.6.0" +click = "==8.0.3" +ghp-import = "==2.0.2" +importlib-metadata = "==4.10.1" +jinja2 = "==3.0.3" +markdown = "==3.3.6" +markupsafe = "==2.0.1" +mergedeep = "==1.3.4" +mkdocs = "==1.2.3" +mkdocs-material-extensions = "==1.0.3" +pygments = "==2.11.2" +pymdown-extensions = "==9.1" +pyparsing = "==3.0.7" +python-dateutil = "==2.8.2" +pyyaml = "==6.0" +pyyaml-env-tag = "==0.1" +six = "==1.16.0" +watchdog = "==2.1.6" +zipp = "==3.7.0" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..341bf6d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,21 @@ +click==8.0.3 +ghp-import==2.0.2 +importlib-metadata==4.10.1 +Jinja2==3.0.3 +Markdown==3.3.6 +markdown-include==0.6.0 +MarkupSafe==2.0.1 +mergedeep==1.3.4 +mkdocs==1.2.3 +mkdocs-material==8.1.8 +mkdocs-material-extensions==1.0.3 +packaging==21.3 +Pygments==2.11.2 +pymdown-extensions==9.1 +pyparsing==3.0.7 +python-dateutil==2.8.2 +PyYAML==6.0 +pyyaml_env_tag==0.1 +six==1.16.0 +watchdog==2.1.6 +zipp==3.7.0 -- 2.43.0 From 5c5c4fe4b99f5af11e136ca153057e4f4e5538f1 Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 26 Jun 2022 18:06:19 +0100 Subject: [PATCH 6/6] include git --- .woodpecker/.release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/.release.yml b/.woodpecker/.release.yml index 5c97f07..c7643e4 100644 --- a/.woodpecker/.release.yml +++ b/.woodpecker/.release.yml @@ -11,7 +11,7 @@ pipeline: CI: "true" image: python:3.10-slim commands: - - apt-get update && apt-get install -y rclone wget + - apt-get update && apt-get install -y rclone wget git - wget https://github.com/scaleway/scaleway-cli/releases/download/v2.5.1/scaleway-cli_2.5.1_linux_amd64 - mv scaleway-cli_2.5.1_linux_amd64 scaleway-cli - chmod +x scaleway-cli -- 2.43.0