Skip to content

Commit

Permalink
깃플로우: 도커 이미지 빌드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HanaHww2 authored Aug 20, 2023
1 parent fa77b39 commit 73d531e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: React CI with Docker
on:
push:
branches: dev

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# 도커허브 로그인
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

# 도커 이미지 빌드/업로드
- name: docker image build and push
run: |
docker build -t ${{ secrets.DOCKER_REPO }}/front -f Dockerfile.prod .
docker push ${{ secrets.DOCKER_REPO }}/front

0 comments on commit 73d531e

Please sign in to comment.