From 69f2f15445832ecdd7d8b155dce6c783cf064bc3 Mon Sep 17 00:00:00 2001 From: Matias Garcia Isaia Date: Wed, 6 Mar 2024 17:08:33 -0300 Subject: [PATCH] Drop CircleCI builds configuration Thanks for all the fish, CircleCI! --- .circleci/config.yml | 121 ---------------------------------------- deploy.sh | 16 ------ mapserver/deploy.sh | 22 -------- scripts/tools/deploy.sh | 19 ------- 4 files changed, 178 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100755 deploy.sh delete mode 100755 mapserver/deploy.sh delete mode 100755 scripts/tools/deploy.sh diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 108dbe0cf..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,121 +0,0 @@ -version: 2.1 - -commands: - installpackages: - description: "Install APT dependencies for test and release builds" - steps: - - run: | - sudo apt update - sudo apt install -y build-essential cmake \ - libboost-timer-dev libboost-program-options-dev \ - libboost-filesystem-dev \ - libpq-dev libgdal-dev postgresql-client libpq-dev \ - gdal-bin python-gdal libgdal-java - -jobs: - test: - docker: - - image: circleci/clojure:lein-2.8.1-node-browsers - - image: starefossen/pgrouting:10.1-2.4-2.5 - environment: - POSTGRES_USER: postgres - POSTGRES_DB: planwise - working_directory: ~/repo - environment: - JVM_OPTS: -Xmx3200m - TEST_DATABASE_URL: jdbc:postgresql://localhost/planwise?user=postgres - steps: - - checkout - - restore_cache: - keys: - - v2-planwise-m2-{{ checksum "project.clj" }}-{{ checksum "client/shadow-cljs.edn" }} - - v2-planwise-m2- - - installpackages - - run: lein test - - run: | - cd client - npm install - - run: | - cd client - npm run test - - run: lein check-format - - save_cache: - key: v2-planwise-m2-{{ checksum "project.clj" }}-{{ checksum "client/shadow-cljs.edn" }} - paths: - - ~/.m2 - - client/node_modules - - deploy: - docker: - - image: circleci/clojure:lein-2.8.1-node-browsers - working_directory: ~/repo - environment: - JVM_OPTS: -Xmx3200m - steps: - - checkout - - setup_remote_docker - - restore_cache: - keys: - - v2-planwise-m2-{{ checksum "project.clj" }}-{{ checksum "client/shadow-cljs.edn" }} - - v2-planwise-m2- - - installpackages - - run: git describe --always > resources/planwise/version - - run: | - cd client - npm install - - run: | - cd client - npm run release - - run: lein uberjar - - run: scripts/build-binaries --release - - run: | - ./deploy.sh ${CIRCLE_TAG:-${CIRCLE_BRANCH/#master/latest}} - - mapserver: - docker: - - image: cimg/base:stable - working_directory: ~/repo - steps: - - checkout - - setup_remote_docker - - run: | - ./mapserver/deploy.sh ${CIRCLE_TAG:-${CIRCLE_BRANCH/#master/latest}} - - tools: - docker: - - image: cimg/base:stable - working_directory: ~/repo - steps: - - checkout - - setup_remote_docker - - run: | - ./scripts/tools/deploy.sh ${CIRCLE_TAG:-${CIRCLE_BRANCH/#master/latest}} - -workflows: - version: 2 - ci: - jobs: - - test: - filters: - branches: - only: /.*/ - tags: - only: /.*/ - - deploy: - requires: - - test - filters: - branches: - only: - - master - - stable - - /.*\bci\b.*/ - tags: - only: - - /[0-9]+(\.[0-9]+)*(-pre\d+)?/ - - mapserver: - requires: - - deploy - - tools: - requires: - - deploy diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 31e47eebb..000000000 --- a/deploy.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set -euo pipefail - -# To be invoked from circleci - -if [ $# -lt 1 ]; then - echo "Usage: $0 DOCKER_TAG" - exit 1 -fi - -TAG=${1/\//_} - -docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} ${DOCKER_REGISTRY} -docker build -t planwise . -docker tag planwise ${DOCKER_REPOSITORY}:$TAG -docker push ${DOCKER_REPOSITORY}:$TAG diff --git a/mapserver/deploy.sh b/mapserver/deploy.sh deleted file mode 100755 index dc873088f..000000000 --- a/mapserver/deploy.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -euo pipefail - -cd $(dirname $0) - -# To be invoked from circleci - -if [ $# -lt 1 ]; then - echo "Usage: $0 DOCKER_TAG" - exit 1 -fi - -TAG=${1/\//_} - -MAPCACHE_TAG=instedd/planwise-mapserver:mapcache-$TAG -MAPSERVER_TAG=instedd/planwise-mapserver:mapserver-$TAG - -docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} ${DOCKER_REGISTRY} -docker build -t $MAPSERVER_TAG -f Dockerfile.mapserver . -docker build -t $MAPCACHE_TAG -f Dockerfile.mapcache . -docker push $MAPSERVER_TAG -docker push $MAPCACHE_TAG diff --git a/scripts/tools/deploy.sh b/scripts/tools/deploy.sh deleted file mode 100755 index 4162f5400..000000000 --- a/scripts/tools/deploy.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -set -euo pipefail - -cd $(dirname $0)/.. - -# To be invoked from circleci - -if [ $# -lt 1 ]; then - echo "Usage: $0 DOCKER_TAG" - exit 1 -fi - -TAG=${1/\//_} - -TOOLS_TAG=instedd/planwise-tools:$TAG - -docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} ${DOCKER_REGISTRY} -docker build -t $TOOLS_TAG . -docker push $TOOLS_TAG