Skip to content

Commit

Permalink
[feat] : build CI script 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackBean99 committed Aug 27, 2023
1 parent c9801b8 commit 61cfe88
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/BuildServer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- develop
- release/*
- backend
- feature/*

jobs:
build:
Expand Down Expand Up @@ -38,23 +40,22 @@ jobs:
uses: gradle/gradle-build-action@v2

- name: Execute Gradle build
run: ./gradlew build --no-daemon
run: ./gradlew :Recruit-Api:build --no-daemon

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to NCP Registry
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ secrets.NCP_CONTAINER_REGISTRY }}
username: ${{ secrets.NCP_ACCESS_KEY }}
password: ${{ secrets.NCP_SECRET_KEY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

# docker build / push to NCP Container Registry
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
context: ./Recruit-Api
# image push 최적화
push: true
tags: ${{secrets.NCP_CONTAINER_REGISTRY}}/econovation-idp:${{ steps.get_version.outputs.VERSION }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/econo-recruit:${{ steps.get_version.outputs.VERSION }}

0 comments on commit 61cfe88

Please sign in to comment.