Docker deploy
This commit is contained in:
parent
3f9cc19944
commit
c83e7108dd
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env groovy
|
||||
|
||||
def call() {
|
||||
sh 'docker-compose build --parallel'
|
||||
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||
sh 'docker-compose push'
|
||||
}
|
|
@ -1,8 +1,5 @@
|
|||
#!/usr/bin/env groovy
|
||||
|
||||
def call() {
|
||||
sh 'docker-compose build --parallel'
|
||||
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||
sh 'docker-compose push'
|
||||
sh 'docker stack deploy --with-registry-auth --prune --compose-file docker-compose.yml $PROJECT_NAME'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue