Skip to content

feat: 초기 구현

feat: 초기 구현 #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main # main 브랜치에 push될 때 워크플로우 실행
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: devjyk/llm-api:latest
- name: Logout from Docker Hub
run: docker logout