Skip to content

Commit bf40230

Browse files
🚀 Add work dir parameter (#2)
* add work dir as optional * fix typo * Update action.yml
1 parent 6f26daa commit bf40230

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

DeployToQA.sh

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
export CLEAN_BRANCH_NAME=$CLEAN_BRANCH_NAME # set this env variable for docker compose
44

5+
if [[ -n $WORK_DIR ]]
6+
then
7+
cd $WORK_DIR
8+
fi
9+
510
echo "Deploy to ${APP_NAME}-qa.satel.ca"
611
export DOCKER_TLS_VERIFY='1'
712
export DOCKER_HOST='tcp://34.234.172.171:2376'

action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ inputs:
1616
clean-branch-name:
1717
description: Clean branch name
1818
required: true
19+
work-dir:
20+
description: work directory
21+
required: false
1922

2023
runs:
2124
using: "composite"
@@ -27,5 +30,6 @@ runs:
2730
DOCKER_PASS: ${{ inputs.satel-docker-pass }}
2831
REGISTRY: ${{ inputs.satel-registry }}
2932
CLEAN_BRANCH_NAME: ${{ inputs.clean-branch-name }}
33+
WORK_DIR: ${{ inputs.work-dir }}
3034
run: ${{ github.action_path }}/DeployToQA.sh
3135
shell: bash

0 commit comments

Comments
 (0)