From 1f871f59b9ce89661ea99ae47091f1ec1cc5103a Mon Sep 17 00:00:00 2001 From: Ivan Rezchikov Date: Tue, 15 Sep 2026 18:23:39 +0300 Subject: [PATCH] ci/cd: secrets rotation --- .drone.yml | 96 ------------------------------------- .gitea/workflows/deploy.yml | 2 + 2 files changed, 2 insertions(+), 96 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index a315a10..0000000 --- a/.drone.yml +++ /dev/null @@ -1,96 +0,0 @@ -kind: pipeline -type: docker -name: default - -steps: - - name: test backend - image: golang:1.25-alpine3.21 - commands: - - cd kotosoft-id-backend - - go mod tidy - - go test ./... - - - name: lint frontend - image: node:20-alpine - commands: - - cd kotosoft-id-frontend - - npm install - - npm run lint - - - name: build and push backend - image: docker:24 - volumes: - - name: dockersock - path: /var/run/docker.sock - - name: appdir - path: /opt/app - commands: - - docker build - -t 172.17.0.1:5000/kotosoft_id_backend:latest - -f kotosoft-id-backend/Dockerfile - kotosoft-id-backend - - docker push 172.17.0.1:5000/kotosoft_id_backend:latest - - - name: build and push frontend - image: docker:24 - volumes: - - name: dockersock - path: /var/run/docker.sock - commands: - - docker build - -t 172.17.0.1:5000/kotosoft_id_frontend:latest - -f kotosoft-id-frontend/Dockerfile - kotosoft-id-frontend - - docker push 172.17.0.1:5000/kotosoft_id_frontend:latest - - - name: deploy - image: docker:24 - volumes: - - name: dockersock - path: /var/run/docker.sock - - name: appdir - path: /opt/app - environment: - FRONTEND_URL: - from_secret: FRONTEND_URL - BACKEND_URL: - from_secret: BACKEND_URL - POSTGRES_URL: - from_secret: POSTGRES_URL - REDIS_URL: - from_secret: REDIS_URL - JWT_SECRET: - from_secret: JWT_SECRET - CLIENT_ID: - from_secret: CLIENT_ID - CLIENT_SECRET: - from_secret: CLIENT_SECRET - CLIENT_NAME: - from_secret: CLIENT_NAME - CLIENT_REDIRECT_URIS: - from_secret: CLIENT_REDIRECT_URIS - DOMAIN: - from_secret: DOMAIN - API_DOMAIN: - from_secret: API_DOMAIN - LETSENCRYPT_EMAIL: - from_secret: LETSENCRYPT_EMAIL - commands: - - apk add --no-cache docker-cli-compose - - mkdir -p /opt/app - - cp docker-compose.yml /opt/app/docker-compose.yml - - cd /opt/app - - docker compose -p kotosoft pull - - docker compose -p kotosoft up -d --remove-orphans - -volumes: - - name: dockersock - host: - path: /var/run/docker.sock - - name: appdir - host: - path: /opt/drone/kotosoft-id - -trigger: - branch: - - main \ No newline at end of file diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 73ec3a4..e701c17 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -4,6 +4,8 @@ on: push: branches: - main + + workflow_dispatch: jobs: test-backend: