forked from Concordium/concordium-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
collector-backend.Jenkinsfile
36 lines (32 loc) · 1.07 KB
/
collector-backend.Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@Library('concordium-pipelines') _
pipeline {
agent any
environment {
BUILD_TYPE = 'release'
ecr_repo_domain = '192549843005.dkr.ecr.eu-west-1.amazonaws.com'
image_repo = "${ecr_repo_domain}/concordium/collector-backend"
image_name = "${image_repo}:${image_tag}"
}
stages {
stage('ecr-login') {
steps {
ecrLogin(env.ecr_repo_domain, 'eu-west-1')
}
}
stage('build-collector-backend') {
steps {
sh '''\
docker build \
--build-arg base_image_tag="${base_image_tag}" \
--build-arg build_type="${BUILD_TYPE}" \
--label base_image_tag="${base_image_tag}" \
--label build_type="${BUILD_TYPE}" \
-t "${image_name}" \
-f scripts/testnet-deployments/collector-backend.Dockerfile \
.
docker push "${image_name}"
'''
}
}
}
}