Skip to content

Commit

Permalink
fix: 환경변수 문법 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjookang committed Apr 26, 2024
1 parent ac59cf8 commit 805ebc0
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
pull_request:
branches: [ "dev" ]

env:
RESOURCE_PATH: ../src/main/resources/application.yml

jobs:
build:

Expand All @@ -32,12 +29,13 @@ jobs:

- name: Build with Gradle Wrapper
run: ./gradlew build

env:
spring.profiles.active: dev
ACTIVE_PROFILE: ${{ secrets.ACTIVE_PROFILE }}

spring.datasource.url: ${{ secrets.DATASOURCE_URL_DEV }}
spring.datasource.username: ${{ secrets.DATASOURCE_USERNAME }}
spring.datasource.password: ${{ secrets.DATASOURCE_PASSWORD }}
DATASOURCE_URL_DEV: ${{ secrets.DATASOURCE_URL_DEV }}
DATASOURCE_USERNAME: ${{ secrets.DATASOURCE_USERNAME }}
DATASOURCE_PASSWORD: ${{ secrets.DATASOURCE_PASSWORD }}

ACCESSTOKEN_EXPIREDDATE: ${{ secrets.ACCESSTOKEN_EXPIREDDATE }}

Expand All @@ -59,10 +57,10 @@ jobs:

- name: Docker build
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -t app .
docker tag app ${{ secrets.DOCKER_USERNAME }}/conet:latest
docker push ${{ secrets.DOCKER_USERNAME }}/conet:latest
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo docker build -t app .
sudo docker tag app ${{ secrets.DOCKER_USERNAME }}/conet:latest
sudo docker push ${{ secrets.DOCKER_USERNAME }}/conet:latest
- name: Deploy
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 805ebc0

Please sign in to comment.