diff --git a/.drone.yml b/.drone.yml index edef0d6..6e7d8f3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,3 +53,19 @@ services: volumes: - name: dockersock temp: {} +--- +type: docker +kind: pipeline +name: "release-please" +steps: + - name: release + image: marcoieni/release-plz + commands: + - release-plz release-pr --token $GITEA_TOKEN --backend gitea + environments: + GITA_TOKEN: + from_secret: gitea_token + when: + branch: + - master + - main diff --git a/templates/drone-template.yaml b/templates/drone-template.yaml index 0000700..32c204d 100644 --- a/templates/drone-template.yaml +++ b/templates/drone-template.yaml @@ -23,6 +23,7 @@ steps: - name: dockersock path: /var/run commands: + - git remote set-url origin $DRONE_GIT_SSH_URL - eval `ssh-agent` - chmod -R 600 ~/.ssh - ssh-add @@ -32,7 +33,9 @@ steps: CUDDLE_SECRETS_PROVIDER: 1password CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci" CUDDLE_SSH_AGENT: "true" - CUDDLE_ONE_PASSWORD_INJECT: "DOCKER_USERNAME={{ op://application/docker_hub_credentials/username }},DOCKER_PASSWORD={{ op://application/docker_hub_credentials/password }}" + CUDDLE_ONE_PASSWORD_INJECT: "{{`DOCKER_USERNAME={{ op://application/docker_hub_credentials/username }},DOCKER_PASSWORD={{ op://application/docker_hub_credentials/password }}`}}" + SSH_KEY: + from_secret: gitea_id_ed25519 OP_SERVICE_ACCOUNT_TOKEN: from_secret: op_service_account_token