Skip to content

Commit

Permalink
Feat: cd if exists else mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
BYEONGRYEOL committed Aug 7, 2024
1 parent e3b2ad3 commit 18c5699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: make staging docker-compose file
if: contains(github.ref, 'staging')
run: |
cd ./docker/staging
mkdir -p ./docker/staging && cd ./docker/staging
touch ./docker-compose.yml
echo "${{ secrets.DOCKER_COMPOSE_STAGING }}" > ./docker-compose.yml
touch ./.env
Expand All @@ -78,7 +78,7 @@ jobs:
- name: make deploy docker-compose file
if: contains(github.ref, 'main')
run: |
cd ./docker/deploy
mkdir -p ./docker/deploy && cd ./docker/deploy
touch ./docker-compose.yml
echo "${{ secrets.DOCKER_COMPOSE_DEPLOY }}" > ./docker-compose.yml
touch ./.env
Expand Down

0 comments on commit 18c5699

Please sign in to comment.