Skip to content

Commit

Permalink
init production
Browse files Browse the repository at this point in the history
  • Loading branch information
lopahn2 committed Oct 21, 2023
1 parent 8bc9e44 commit d986ba2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Image KAFKA_TOPIC_SERVICE CI

on:
push:
branches: [ "main" ]
branches: [ "production" ]
pull_request:
branches: [ "main" ]
branches: [ "production" ]

jobs:
build:
Expand All @@ -16,7 +16,7 @@ jobs:
run: |
mkdir -p ./src/main/resources
touch ./src/main/resources/application.yml
echo ${{ secrets.APPLICATION_YML }} | base64 --decode >> ./src/main/resources/application.yml
echo ${{ secrets.PRODUCTION_APPLICATION_YML }} | base64 --decode >> ./src/main/resources/application.yml

- name: Set up JDK 11
Expand Down Expand Up @@ -52,5 +52,5 @@ jobs:
- name: Build & Push to ECR
run: |
docker build -t suite-kafka:$GITHUB_SHA .
docker tag suite-kafka:$GITHUB_SHA ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.ap-northeast-2.amazonaws.com/suite-kafka:$GITHUB_SHA
docker push ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.ap-northeast-2.amazonaws.com/suite-kafka:$GITHUB_SHA
docker tag suite-kafka:$GITHUB_SHA ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.ap-northeast-2.amazonaws.com/prod-suite-kafka:$GITHUB_SHA
docker push ${{ secrets.AWS_ACCOUNT_NUM }}.dkr.ecr.ap-northeast-2.amazonaws.com/prod-suite-kafka:$GITHUB_SHA

0 comments on commit d986ba2

Please sign in to comment.