Skip to content

Commit

Permalink
Update and rename ci.yml to ci-prod.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chanyoung1998 authored Jul 21, 2024
1 parent 8d9762d commit 76780bd
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml → .github/workflows/ci-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [ "main", "develop" ]
branches: [ "main"]

jobs:
build:
Expand Down Expand Up @@ -40,17 +40,6 @@ jobs:
cloud.aws.credentials.access-key: ${{secrets.AWS_S3_ACCESSKEY}}
cloud.aws.credentials.secret-key: ${{secrets.AWS_S3_SECRETKEY}}

- name: Substitute environment variables DEV
if: contains(github.ref,'develop')
uses: microsoft/variable-substitution@v1
with:
files: ./dplanner/src/main/resources/application-production.yml
env:
spring.datasource.url: ${{ secrets.DB_URL_DEV }}
spring.datasource.username: ${{ secrets.DB_USER }}
spring.datasource.password: ${{ secrets.DB_PASSWORD }}
cloud.aws.credentials.access-key: ${{secrets.AWS_S3_ACCESSKEY}}
cloud.aws.credentials.secret-key: ${{secrets.AWS_S3_SECRETKEY}}

- name: Build with Gradle
run: |
Expand Down

0 comments on commit 76780bd

Please sign in to comment.