Skip to content

Commit

Permalink
Build and Publish docker image (argoproj#1)
Browse files Browse the repository at this point in the history
In order to allow us cherry-pick fixes and changes, we need to be able to build and run the argo-workflow software ourselves

Jira: DNAWF-931
  • Loading branch information
rtartler-blp authored and GitHub Enterprise committed Oct 25, 2023
1 parent 4bbd5b1 commit 594ef75
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@Library(['jaazy-jeff-jaas', 'jaas-workflow']) _

//to use docker uncomment this and use agent_label: node(agent_label)
def agent_label = jaas.getDockerAgentLabel()

node(agent_label) {
cleanWs()
checkout scm
GIT_COMMIT = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()

def j = jaazy()

def buildEnv = j.env("Environment")
.addVariables([
"DOCKER_BUILDKIT": "1"
])

def infoAgent = j.agent("generic.JaazyFileInfoAgent")

def dockerAgent = j.agent("generic.DockerAgent")
.setDefaultNamespace("workflow-runtimes")
.setDockerRegistryCredential("dsbuild-artifactory-jwt")
.inside(buildEnv)
.addBuildVariables([
"GIT_COMMIT": "${GIT_COMMIT}",
"GIT_TREE_STATE": "JaaS-clean",
"GIT_TAG": "untagged",
"VERSION": infoAgent.getVersion(),
])
.addBuildFlags(["--target workflow-controller"])


def workflow = j.workflow("SimpleFlow") // Probably should give this a better variable name
.infoUsing(infoAgent)
.buildUsing(dockerAgent)
.publishUsing(dockerAgent)
.start() // Needed to actually start the workflow
}
4 changes: 4 additions & 0 deletions jaazy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "argo-workflows",
"version": "3.4.8.bb1"
}

0 comments on commit 594ef75

Please sign in to comment.