build: trying to see whether I can push to container registry
This commit is contained in:
parent
94cea57ff6
commit
625df11b6d
1 changed files with 3 additions and 1 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -2,6 +2,7 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
environment {
|
environment {
|
||||||
PROJECT_OWNER = "devaine"
|
PROJECT_OWNER = "devaine"
|
||||||
|
PROJECT_NAME = "scripts"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage("build-desec") {
|
stage("build-desec") {
|
||||||
|
|
@ -29,7 +30,8 @@ pipeline {
|
||||||
// Get into the desec-ip-sync directory
|
// Get into the desec-ip-sync directory
|
||||||
dir('./server/desec-ip-sync/') {
|
dir('./server/desec-ip-sync/') {
|
||||||
sh '''
|
sh '''
|
||||||
docker buildx build -t "$REGISTRY"/"$PROJECT_OWNER"/"$SCRIPT_NAME" .
|
docker buildx build -t "$REGISTRY"/"$PROJECT_OWNER"/"$PROJECT_NAME":$SCRIPT_NAME" .
|
||||||
|
docker push "$REGISTRY"/"$PROJECT_OWNER"/"$PROJECT_NAME":"$SCRIPT_NAME"
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue