Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: separate updatecli to its own pipeline #204

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 11 additions & 22 deletions Jenkinsfile_k8s
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
parallel(
failFast: false,
'terraform': {
terraform(
// "Read only" token
stagingCredentials: [
string(variable: 'DIGITALOCEAN_ACCESS_TOKEN', credentialsId:'staging-terraform-digitalocean-pat'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'staging-terraform-digitalocean-backend-config'),
],
// "Read write" token
productionCredentials: [
string(variable: 'DIGITALOCEAN_ACCESS_TOKEN', credentialsId:'production-terraform-digitalocean-pat'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'production-terraform-digitalocean-backend-config'),
],
)
},
'updatecli': {
updatecli(action: 'diff')
if (env.BRANCH_IS_PRIMARY) {
updatecli(action: 'apply', cronTriggerExpression: '@daily')
}
},
terraform(
// "Read only" token
stagingCredentials: [
string(variable: 'DIGITALOCEAN_ACCESS_TOKEN', credentialsId:'staging-terraform-digitalocean-pat'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'staging-terraform-digitalocean-backend-config'),
],
// "Read write" token
productionCredentials: [
string(variable: 'DIGITALOCEAN_ACCESS_TOKEN', credentialsId:'production-terraform-digitalocean-pat'),
file(variable: 'BACKEND_CONFIG_FILE', credentialsId: 'production-terraform-digitalocean-backend-config'),
],
)
4 changes: 4 additions & 0 deletions Jenkinsfile_updatecli
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
updatecli(action: 'diff')
if (env.BRANCH_IS_PRIMARY) {
updatecli(action: 'apply', cronTriggerExpression: '@daily')
}
6 changes: 3 additions & 3 deletions updatecli/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
github:
user: "Jenkins Infra Bot (updatecli)"
email: "60776566+jenkins-infra-bot@users.noreply.github.com"
username: "jenkins-infra-bot"
user: "jenkins-infra-updatecli"
email: "178728+jenkins-infra-updatecli[bot]@users.noreply.github.com"
token: "UPDATECLI_GITHUB_TOKEN"
branch: "main"
owner: "jenkins-infra"
Expand Down