Skip to content

Commit

Permalink
chore: CD 환경 변수 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tlarbals824 committed Jul 25, 2023
1 parent 933e1dd commit 9e9bae1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@ jobs:
shell: bash

- name: Set .env for configuration
run: |
touch ./.env
echo "MONGO_USERNAME=${{ secrets.MONGO_USERNAME }}" >> ./.env
echo "MONGO_PASSWORD=${{ secrets.MONGO_PASSWORD }}" >> ./.env
echo "DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}" >> ./.env
echo "DOCKER_REPOSITORY=${{ secrets.DOCKER_REPOSITORY }}" >> ./.env
shell: bash
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ubuntu
key: ${{ secrets.KEY }}
script: |
rm -rf ./.env
touch ./.env
echo "MONGO_USERNAME=${{ secrets.MONGO_USERNAME }}" >> ./.env
echo "MONGO_PASSWORD=${{ secrets.MONGO_PASSWORD }}" >> ./.env
echo "DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}" >> ./.env
echo "DOCKER_REPOSITORY=${{ secrets.DOCKER_REPOSITORY }}" >> ./.env
- name: Build With Gradle
run: ./gradlew build
Expand Down

0 comments on commit 9e9bae1

Please sign in to comment.