chore: update github workflow

This commit is contained in:
Zhiqiang Li
2023-03-30 18:55:02 +08:00
parent c66d6dfa9b
commit 52912bf950

View File

@@ -1,29 +1,28 @@
name: Build Image
on:
push:
branches:
- 'master'
workflow_dispatch:
inputs:
tags:
default: 'latest'
required: true
description: 'Docker image tag'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: stulzq/azure-openai-proxy:latest
tags: stulzq/azure-openai-proxy:${{ github.event.inputs.tags }}