Skip to content

ci: update workflow

ci: update workflow #4

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:alpine .
docker push brucexun/gpt-rs:alpine