File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,9 @@ echo "Deploy to ${APP_NAME}-qa.satel.ca"
11
11
export DOCKER_TLS_VERIFY=' 1'
12
12
export DOCKER_HOST=' tcp://34.234.172.171:2376'
13
13
export DOCKER_CERT_PATH=' /home/satel/.docker/machine/machines/satel-webapps-qa'
14
- docker login --username=$DOCKER_USER --password=$DOCKER_PASS $REGISTRY
15
- docker stack deploy --with-registry-auth -c docker-compose.qa.yml ${APP_NAME}
14
+
15
+ if [[ ! $REGISTRY_TYPE ]]; then
16
+ docker login --username=$DOCKER_USER --password=$DOCKER_PASS $REGISTRY
17
+ fi
18
+
19
+ docker stack deploy --with-registry-auth -c docker-compose.qa.yml ${APP_NAME}
Original file line number Diff line number Diff line change @@ -6,18 +6,21 @@ inputs:
6
6
required : true
7
7
satel-docker-user :
8
8
description : Username for satel docker registry
9
- required : true
9
+ required : false
10
10
satel-docker-pass :
11
11
description : Password for satel docker registry
12
- required : true
12
+ required : false
13
13
satel-registry :
14
14
description : Satel registry address
15
- required : true
15
+ required : false
16
16
clean-branch-name :
17
17
description : Clean branch name
18
18
required : true
19
19
work-dir :
20
- description : work directory
20
+ description : Work directory
21
+ required : false
22
+ registry-type :
23
+ description : Type of registry
21
24
required : false
22
25
23
26
runs :
31
34
REGISTRY : ${{ inputs.satel-registry }}
32
35
CLEAN_BRANCH_NAME : ${{ inputs.clean-branch-name }}
33
36
WORK_DIR : ${{ inputs.work-dir }}
37
+ REGISTRY_TYPE : ${{ inputs.registry-type }}
34
38
run : ${{ github.action_path }}/DeployToQA.sh
35
39
shell : bash
You can’t perform that action at this time.
0 commit comments