Skip to content

Commit

Permalink
fix: main ci/cd 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jcy0308 committed Oct 18, 2024
1 parent e3b242c commit b8c47e1
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: ["main"]
env:
dockerimage_tag: ${{ github.sha }}
dockerimage_name: harbor.k8s.scg.skku.ac.kr/library/ice-gs-thesis-be
dockerimage_name: jcy0308/ice-gs-thesis-be-prod
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,21 +36,8 @@ jobs:
- name: Docker 준비(4/4) - 레지스트리 로그인
uses: docker/login-action@v2
with:
registry: ${{ secrets.HARBOR_REGISTRY }}
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_PASSWORD }}
- name: env 파일 생성
run: |
echo APP_ENV=${{secrets.APP_ENV}} >> .env
echo APP_PORT=${{secrets.APP_PORT}} >> .env
echo DATABASE_URL="${{secrets.DATABASE_URL_PROD}}" >> .env
echo JWT_SECRET="${{secrets.JWT_SECRET}}" >> .env
echo MINIO_END_POINT="${{secrets.MINIO_END_POINT}}" >> .env
echo MINIO_PORT=${{secrets.MINIO_PORT}} >> .env
echo MINIO_ACCESS_KEY="${{secrets.MINIO_ACCESS_KEY}}" >> .env
echo MINIO_SECRET_KEY="${{secrets.MINIO_SECRET_KEY}}" >> .env
echo MINIO_BUCKET_NAME="${{secrets.MINIO_BUCKET_NAME_PROD}}" >> .env
cat .env
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker 이미지 빌드+푸시
id: build-and-push
uses: docker/build-push-action@v5.1.0
Expand Down

0 comments on commit b8c47e1

Please sign in to comment.