Skip to content

Commit

Permalink
chore(#148): docker image 빌드 시 필요한 환경변수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeonkim committed Oct 20, 2024
1 parent 23b4d8a commit ada35e1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
pull_request:
branches: [ dev ]

env:
ECR_NAMESPACE: ${{ vars.ECR_NAMESPACE }}

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -52,6 +49,9 @@ jobs:

- name: build docker image
run: docker compose build
env:
ECR_NAMESPACE: ${{ vars.ECR_NAMESPACE }}
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }}

# - name: push docker image to AWS ECR
# run: |
Expand Down Expand Up @@ -94,8 +94,7 @@ jobs:
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: ${{ secrets.AWS_REGION }}
# ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }}
# ELASTIC_PASSWORD: ${{secrets.ELASTIC_PASSWORD}}
# KIBANA_PASSWORD: ${{secrets.KIBANA_PASSWORD}}
# ECR_NAMESPACE: ${{ vars.ECR_NAMESPACE }}
# with:
# host: ${{ secrets.EC2_HOST }}
# username: ubuntu
Expand Down

0 comments on commit ada35e1

Please sign in to comment.