diff --git a/.github/workflows/cicd-ec2-dev.yml b/.github/workflows/cicd-ec2-dev.yml index fc7b82cc..0769cb2f 100644 --- a/.github/workflows/cicd-ec2-dev.yml +++ b/.github/workflows/cicd-ec2-dev.yml @@ -48,16 +48,16 @@ jobs: run: | cd $GITHUB_WORKSPACE ls - rm Dockerfile - cat ./Dockerfile-prod >> ./Dockerfile + rm -f Dockerfile + cat ./Dockerfile-dev >> ./Dockerfile # appspec.yml, deploy.sh 주입 - name: make appspec.yml, deploy.sh run: | cd $GITHUB_WORKSPACE ls - rm appspec.yml - rm deploy.sh + rm -f appspec.yml + rm -f deploy.sh cat ./appspec-dev.yml >> ./appspec.yml cat ./deploy-dev.sh >> ./deploy.sh diff --git a/.github/workflows/cicd-ec2-prod.yml b/.github/workflows/cicd-ec2-prod.yml index 7cfd1fc9..3b5c2671 100644 --- a/.github/workflows/cicd-ec2-prod.yml +++ b/.github/workflows/cicd-ec2-prod.yml @@ -48,16 +48,16 @@ jobs: run: | cd $GITHUB_WORKSPACE ls - rm Dockerfile - cat ./Dockerfile-dev >> ./Dockerfile + rm -f Dockerfile + cat ./Dockerfile-prod >> ./Dockerfile # appspec.yml, deploy.sh 주입 - name: make appspec.yml, deploy.sh run: | cd $GITHUB_WORKSPACE ls - rm appspec.yml - rm deploy.sh + rm -f appspec.yml + rm -f deploy.sh cat ./appspec-prod.yml >> ./appspec.yml cat ./deploy-proc.sh >> ./deploy.sh