Skip to content

🔨 add github workflow to build and push to hub #1

🔨 add github workflow to build and push to hub

🔨 add github workflow to build and push to hub #1

Workflow file for this run

name: build image
on:
push:
tags: [v\d+\.\d+\.\d+]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image
run: |
docker build -t brucexun/gpt-server:latest .
docker push brucexun/gpt-server:latest