Skip to content

Commit

Permalink
Refactor deployment pipeline for streamlined git tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
yarlson committed Jul 16, 2024
1 parent d0505a7 commit d804651
Showing 1 changed file with 11 additions and 26 deletions.
37 changes: 11 additions & 26 deletions .kargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,15 @@ jobs:
commands:
- TAG=PRE-{{.PR}} deployment/deploy.kargo.sh

{{ if eq .PR "main"}}
- name: release
noAgent: true
- name: tag-{{.PR}}
when:
branch: main
node: build
triggers:
upstream: deploy-main
pipeline: |
node("build") {
git(branch: 'main', credentialsId: 'lokalise-engineering', url: '[email protected]:lokalise/ce-connector-clevertap.git')
properties([
[$class: 'BuildBlockerProperty', useBuildBlocker: false],
disableConcurrentBuilds(),
])
echo "Release started..."
stage("Create a git tag") {
withCredentials([
string(credentialsId: 'GH_TOKEN', variable: 'GITHUB_TOKEN'),
string(credentialsId: 'DOCKER_PASSWORD', variable: 'REGISTRY_PASSWORD')
]) {
sh '''
docker/scripts/release.sh git_tag $(git rev-parse HEAD)
'''
}
}
}
{{ end }}
upstream: deploy-{{.PR}}
pipeline:
kind: tag
parameters:
onlyECR: true
services:
- app

0 comments on commit d804651

Please sign in to comment.