Skip to content

자동 배포 추가 #1

자동 배포 추가

자동 배포 추가 #1

name: Build docker image on push to develop
on:
push:
branches: ["develop"]
pull_request: # for debug
branches: ["develop"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . -f Dockerfile -t ghcr.io/sparcs-kaist/zabo-front:dev
- name: Log in to DockerHub
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u USERNAME --password-stdin
- name: Push the Docker image
run: docker push ghcr.io/sparcs-kaist/zabo-front:dev