Skip to content

Commit

Permalink
Merge pull request #31 from iExecBlockchainComputing/release/6.1.0
Browse files Browse the repository at this point in the history
Release/6.1.0
  • Loading branch information
jeremyjams authored Jul 1, 2021
2 parents 1a0b4a4 + 29fdb53 commit e8cc91c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 69 deletions.
73 changes: 5 additions & 68 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,70 +1,7 @@
// Readme @ http://gitlab.iex.ec:30000/iexec/jenkins-library
@Library('[email protected]') _

@Library('[email protected]') _

// Build native docker image
buildSimpleDocker(imageprivacy: 'public')

// Build tee docker images
node('docker') {

def sconifyToolImageName = 'scone-production/iexec-sconify-image'
def sconifyToolImageVersion = '5.3.6'
def sconifyToolArgsPath = './docker/sconify.args'

def gitShortCommit = sh(
script: 'git rev-parse --short HEAD',
returnStdout: true)
.trim()
def gitTag = sh(
script: 'git tag --points-at HEAD|tail -n1',
returnStdout: true)
.trim()
def imageTag = ("$gitTag" =~ /^\d{1,}\.\d{1,}\.\d{1,}$/)
? "$gitTag"
: "$gitShortCommit-dev"

def imageRegistry = 'docker.io/iexechub'
def imageName = 'tee-worker-post-compute'
def nativeImage = "$imageRegistry/$imageName:$imageTag"
def unlockedImage = "nexus.iex.ec/$imageName-unlocked:$imageTag-debug";
def debugImage = "$imageRegistry/$imageName:$imageTag-debug"
def productionImage = "$imageRegistry/$imageName:$imageTag-production";


// /!\ UNLOCKED VERSION /!\
stage('Trigger "unlocked" TEE debug image build') {
sconeSigning(
IMG_FROM: "$nativeImage",
IMG_TO: "$unlockedImage",
SCRIPT_CONFIG: "$sconifyToolArgsPath",
SCONE_IMG_NAME: 'sconecuratedimages/iexec-sconify-image',
SCONE_IMG_VERS: '5.3.3',
FLAVOR: 'DEBUG'
)
}

stage('Trigger TEE debug image build') {
sconeSigning(
IMG_FROM: "$nativeImage",
IMG_TO: "$debugImage",
SCRIPT_CONFIG: "$sconifyToolArgsPath",
SCONE_IMG_NAME: "$sconifyToolImageName",
SCONE_IMG_VERS: "$sconifyToolImageVersion",
FLAVOR: 'DEBUG'
)
}

stage('Trigger TEE production image build') {
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'main') {
sconeSigning(
IMG_FROM: "$nativeImage",
IMG_TO: "$productionImage",
SCRIPT_CONFIG: "$sconifyToolArgsPath",
SCONE_IMG_NAME: "$sconifyToolImageName",
SCONE_IMG_VERS: "$sconifyToolImageVersion",
FLAVOR: 'PROD'
)
}
}
}
def nativeImage = buildSimpleDocker_v2(dockerfileDir: './docker', buildContext: '.',
dockerImageRepositoryName: 'tee-worker-post-compute', imageprivacy: 'public')
sconeBuildAllTee(nativeImage: nativeImage, targetImageRepositoryName: 'tee-worker-post-compute',
sconifyArgsPath: './docker/sconify.args')
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=6.0.0
version=6.1.0
iexecCommonVersion=5.4.0

0 comments on commit e8cc91c

Please sign in to comment.