forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and Publish docker image (argoproj#1)
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
1 parent
4bbd5b1
commit 594ef75
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "argo-workflows", | ||
"version": "3.4.8.bb1" | ||
} |