From 7a927d8d46f8faf0338c39ade608458234c210a1 Mon Sep 17 00:00:00 2001 From: Natty Date: Thu, 20 Apr 2023 22:14:20 +0200 Subject: [PATCH] Custom CI --- .woodpecker/commit.yml | 21 ------------------- .woodpecker/dockerHubReleaseCandidate.yml | 14 ------------- .woodpecker/dockerHubTag.yml | 18 ---------------- .../{dockerHubRelease.yml => ociImageTag.yml} | 6 +++--- .woodpecker/testDocker.yml | 11 ---------- 5 files changed, 3 insertions(+), 67 deletions(-) delete mode 100644 .woodpecker/commit.yml delete mode 100644 .woodpecker/dockerHubReleaseCandidate.yml delete mode 100644 .woodpecker/dockerHubTag.yml rename .woodpecker/{dockerHubRelease.yml => ociImageTag.yml} (75%) delete mode 100644 .woodpecker/testDocker.yml diff --git a/.woodpecker/commit.yml b/.woodpecker/commit.yml deleted file mode 100644 index 6bb1b2d814..0000000000 --- a/.woodpecker/commit.yml +++ /dev/null @@ -1,21 +0,0 @@ -pipeline: - testCommit: - image: node:latest - commands: - - cp .config/ci.yml .config/default.yml - - corepack enable - - corepack prepare pnpm@latest --activate - - pnpm i --frozen-lockfile - - pnpm run build - - pnpm run migrate - -services: - database: - image: postgres:15 - environment: - - POSTGRES_PASSWORD=test - redis: - image: redis - -branches: - include: [ main, beta, develop, feature/* ] diff --git a/.woodpecker/dockerHubReleaseCandidate.yml b/.woodpecker/dockerHubReleaseCandidate.yml deleted file mode 100644 index 48bd39525f..0000000000 --- a/.woodpecker/dockerHubReleaseCandidate.yml +++ /dev/null @@ -1,14 +0,0 @@ -pipeline: - publish-docker-latest: - image: plugins/kaniko - settings: - repo: thatonecalculator/calckey - tags: rc - dockerfile: Dockerfile - username: - # Secret 'docker_username' needs to be set in the CI settings - from_secret: docker_username - password: - # Secret 'docker_password' needs to be set in the CI settings - from_secret: docker_password -branches: beta diff --git a/.woodpecker/dockerHubTag.yml b/.woodpecker/dockerHubTag.yml deleted file mode 100644 index 5543ae2340..0000000000 --- a/.woodpecker/dockerHubTag.yml +++ /dev/null @@ -1,18 +0,0 @@ -pipeline: - publish-docker-tag: - image: plugins/kaniko - settings: - repo: thatonecalculator/calckey - # Uses the tag from git for the container tag - tags: ${CI_COMMIT_TAG} - dockerfile: Dockerfile - username: - # Secret 'docker_username' needs to be set in the CI settings - from_secret: docker_username - password: - # Secret 'docker_password' needs to be set in the CI settings - from_secret: docker_password - when: - # Push new version when version tag is created - event: tag - tag: v* diff --git a/.woodpecker/dockerHubRelease.yml b/.woodpecker/ociImageTag.yml similarity index 75% rename from .woodpecker/dockerHubRelease.yml rename to .woodpecker/ociImageTag.yml index bcb6df4904..b02dfce63a 100644 --- a/.woodpecker/dockerHubRelease.yml +++ b/.woodpecker/ociImageTag.yml @@ -1,9 +1,9 @@ pipeline: publish-docker-latest: - image: plugins/kaniko + image: docker.io/plugins/kaniko settings: - repo: thatonecalculator/calckey - tags: latest + repo: git.astolfo.social/natty/calckey + tags: ${CI_COMMIT_TAG} dockerfile: Dockerfile username: # Secret 'docker_username' needs to be set in the CI settings diff --git a/.woodpecker/testDocker.yml b/.woodpecker/testDocker.yml deleted file mode 100644 index e3fdf0eb93..0000000000 --- a/.woodpecker/testDocker.yml +++ /dev/null @@ -1,11 +0,0 @@ -pipeline: - docker-build: - image: plugins/kaniko - settings: - repo: thatonecalculator/calckey - tags: test - dockerfile: Dockerfile - no_push: true - -branches: - include: [ main, develop, beta ]