From 546536fb5518212ce269de40c646c706a89b247a Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Thu, 2 May 2024 09:50:56 -0300 Subject: [PATCH] Friendship ended with Github, Gitea / Drone is my friend --- .drone.yml | 52 ++++++++++++++++++++++++++++++++++++++++++ .gitea/template | 1 + .github/dependabot.yml | 10 -------- 3 files changed, 53 insertions(+), 10 deletions(-) create mode 100644 .drone.yml create mode 100644 .gitea/template delete mode 100644 .github/dependabot.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7a1cfbb --- /dev/null +++ b/.drone.yml @@ -0,0 +1,52 @@ +--- +kind: pipeline +name: publish pipeline +steps: + - name: publish astro container + image: plugins/docker + settings: + username: 3wordchant + password: + from_secret: git_autonomic_zone_token_3wc + repo: git.autonomic.zone/${REPO_OWNER}/${REPO_NAME} + auto_tag: true + registry: git.autonomic.zone + context: astro + dockerfile: astro/Dockerfile + target: prod + - name: publish payload container + image: plugins/docker + settings: + username: 3wordchant + password: + from_secret: git_autonomic_zone_token_3wc + repo: git.autonomic.zone/${REPO_OWNER}/${REPO_NAME} + auto_tag: true + registry: git.autonomic.zone + context: payload + dockerfile: payload/Dockerfile + target: prod + # See https://docz.autonomic.zone/doc/setting-up-auto-deployment-using-drone-I4j2onjaKT + - name: deploy stack + image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest + settings: + stack: + host: + deploy_key: + from_secret: drone_ssh_ + environment: + DOMAIN: + STACK_NAME: + SECRET_PAYLOAD_SECRET_VERSION: v1 + SECRET_TOKEN_VERSION: v1 + SECRET_MONGO_PASSWORD_VERSION: v1 + depends_on: + - publish astro container + - publish payload container +trigger: + branch: + - main + event: + exclude: + - pull_request + diff --git a/.gitea/template b/.gitea/template new file mode 100644 index 0000000..eef18b7 --- /dev/null +++ b/.gitea/template @@ -0,0 +1 @@ +.drone.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 96d3529..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,10 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "npm" - directory: "/astro" - schedule: - interval: "daily" - - package-ecosystem: "npm" - directory: "/payload" - schedule: - interval: "daily"