Skip to content

Commit e1b7cb7

Browse files
authored
CI / CD 파이프라인 환경 변수를 수정한다. (#134)
fix: modify job environment
1 parent 5511ffd commit e1b7cb7

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ on:
44
branches:
55
- dev
66
env:
7-
ENVIRONMENT: dev
87
AWS_REGION: ap-northeast-2
98
CONTAINER_NAME: gotchai-server
109
API_SPECIFICATION_PATH: ./api/src/main/resources/static/docs
1110
jobs:
1211
deploy-api-spec:
1312
name: Deploy API specification
1413
runs-on: ubuntu-latest
15-
environment: ${{ env.ENVIRONMENT }}
14+
environment: dev
1615
steps:
1716
- name: Checkout repository
1817
uses: actions/checkout@v4
@@ -45,7 +44,7 @@ jobs:
4544
deploy-image:
4645
name: Deploy image
4746
runs-on: ubuntu-latest
48-
environment: ${{ env.ENVIRONMENT }}
47+
environment: dev
4948
needs: deploy-api-spec
5049
outputs:
5150
image: ${{ steps.set-image.outputs.image }}
@@ -85,7 +84,7 @@ jobs:
8584
name: Deploy container
8685
runs-on: ubuntu-latest
8786
needs: deploy-image
88-
environment: ${{ env.ENVIRONMENT }}
87+
environment: dev
8988
steps:
9089
- name: Checkout
9190
uses: actions/checkout@v4

.github/workflows/deploy-prod.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ on:
44
branches:
55
- prod
66
env:
7-
ENVIRONMENT: prod
87
AWS_REGION: ap-northeast-2
98
CONTAINER_NAME: gotchai-server
109
jobs:
1110
deploy-image:
1211
name: Deploy image
1312
runs-on: ubuntu-latest
14-
environment: ${{ env.ENVIRONMENT }}
13+
environment: prod
1514
outputs:
1615
image: ${{ steps.set-image.outputs.image }}
1716
steps:
@@ -50,7 +49,7 @@ jobs:
5049
name: Deploy container
5150
runs-on: ubuntu-latest
5251
needs: deploy-image
53-
environment: ${{ env.ENVIRONMENT }}
52+
environment: prod
5453
steps:
5554
- name: Checkout
5655
uses: actions/checkout@v4

api/src/test/resources/tags.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)