Skip to content

ci: add ci for docker #1

ci: add ci for docker

ci: add ci for docker #1

Workflow file for this run

name: build image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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-rs:latest .
docker push brucexun/gpt-rs:latest