From 2445c79c449475f6b158f48463cc6c6e453f73e7 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Tue, 23 Sep 2025 11:50:44 +0200 Subject: [PATCH] cleanup: Remove some unused code This removes some remains of the old continous-deployment systems --- .woodpecker.star | 87 ------------------- .../opencloud_full/master.yml | 49 ----------- 2 files changed, 136 deletions(-) delete mode 100644 deployments/continuous-deployment-config/opencloud_full/master.yml diff --git a/.woodpecker.star b/.woodpecker.star index 40a77c2991..323671ef6a 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -538,18 +538,6 @@ def main(ctx): pipelines = test_pipelines + build_release_pipelines + notifyMatrix(ctx) - # if ctx.build.event == "cron": - # pipelines = \ - # pipelines + \ - # example_deploys(ctx) - # else: - # pipelines = \ - # pipelines + \ - # pipelinesDependsOn( - # example_deploys(ctx), - # pipelines, - # ) - pipelineSanityChecks(pipelines) return pipelines @@ -2326,81 +2314,6 @@ def translation_sync(ctx): ], }] -def example_deploys(ctx): - on_merge_deploy = [ - "opencloud_full/master.yml", - "opencloud_full/onlyoffice-master.yml", - ] - nightly_deploy = [ - "opencloud_ldap/rolling.yml", - "opencloud_keycloak/rolling.yml", - "opencloud_full/production.yml", - "opencloud_full/rolling.yml", - "opencloud_full/onlyoffice-rolling.yml", - "opencloud_full/s3-rolling.yml", - ] - - # if on master branch: - configs = on_merge_deploy - rebuild = False - - if ctx.build.event == "tag": - configs = nightly_deploy - rebuild = False - - if ctx.build.event == "cron": - configs = on_merge_deploy + nightly_deploy - rebuild = True - - deploys = [] - for config in configs: - deploys.append(deploy(config, rebuild)) - - return deploys - -def deploy(config, rebuild): - return { - "name": "deploy_%s" % config, - "steps": [ - { - "name": "clone continuous deployment playbook", - "image": ALPINE_GIT, - "commands": [ - "cd deployments/continuous-deployment-config", - "git clone https://github.com/owncloud-devops/continuous-deployment.git", - ], - }, - { - "name": "deploy", - "image": OC_CI_DRONE_ANSIBLE, - "failure": "ignore", - "environment": { - "CONTINUOUS_DEPLOY_SERVERS_CONFIG": "../%s" % config, - "REBUILD": rebuild, - "HCLOUD_API_TOKEN": { - "from_secret": "hcloud_api_token", - }, - "CLOUDFLARE_API_TOKEN": { - "from_secret": "cloudflare_api_token", - }, - }, - "settings": { - "playbook": "deployments/continuous-deployment-config/continuous-deployment/playbook-all.yml", - "galaxy": "deployments/continuous-deployment-config/continuous-deployment/requirements.yml", - "requirements": "deployments/continuous-deployment-config/continuous-deployment/py-requirements.txt", - "inventory": "localhost", - "private_key": { - "from_secret": "ssh_private_key", - }, - }, - }, - ], - "when": [ - event["base"], - event["tag"], - ], - } - def checkStarlark(ctx): return [{ "name": "check-starlark", diff --git a/deployments/continuous-deployment-config/opencloud_full/master.yml b/deployments/continuous-deployment-config/opencloud_full/master.yml deleted file mode 100644 index 3b49d1726a..0000000000 --- a/deployments/continuous-deployment-config/opencloud_full/master.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -- name: continuous-deployment-opencloud-master - server: - server_type: cx22 - image: ubuntu-24.04 - location: nbg1 - initial_ssh_key_names: - - opencloud@drone.opencloud.com - labels: - owner: opencloud-team - for: opencloud-continuous-deployment-examples - rebuild: $REBUILD - rebuild_carry_paths: - - /var/lib/docker/volumes/opencloud_certs - - domains: - - "*.cloud.main.opencloud.works" - - vars: - ssh_authorized_keys: - - https://github.com/micbar.keys - docker_compose_projects: - - name: opencloud - git_url: https://github.com/opencloud-eu/opencloud.git - ref: main - docker_compose_path: deployments/examples/opencloud_full - env: - INSECURE: "false" - TRAEFIK_ACME_MAIL: devops@opencloud.eu - OC_DOCKER_TAG: main - OC_DOCKER_IMAGE: opencloudeu/opencloud-rolling:latest - OC_DOMAIN: cloud.main.opencloud.rocks - COMPANION_DOMAIN: companion.main.opencloud.rocks - COMPANION_IMAGE: transloadit/companion:5.5.0 - WOPISERVER_DOMAIN: wopiserver.main.opencloud.rocks - COLLABORA_DOMAIN: collabora.main.opencloud.rocks - INBUCKET_DOMAIN: mail.main.opencloud.rocks - DEMO_USERS: "true" - COMPOSE_FILE: docker-compose.yml:opencloud.yml:tika.yml:collabora.yml:web_extensions/extensions.yml:web_extensions/unzip.yml:web_extensions/importer.yml:inbucket.yml:monitoring_tracing/monitoring.yml - - name: monitoring - git_url: https://github.com/opencloud-devops/monitoring-tracing-client.git - ref: master - env: - NETWORK_NAME: opencloud-net - TELEMETRY_SERVE_DOMAIN: telemetry.main.opencloud.rocks - JAEGER_COLLECTOR: jaeger-collector.infra.opencloud.works:443 - TELEGRAF_SPECIFIC_CONFIG: opencloud_full - OC_URL: opencloud.main.opencloud.rocks - OC_DEPLOYMENT_ID: continuous-deployment-opencloud-master