Skip to content

Commit 312176c

Browse files
author
AiQL.com
authored
Update docker-image.yml
1 parent 1e41fac commit 312176c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Docker Image CI
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [ "main" ]
7+
tags:
8+
- 'v*'
69
pull_request:
710
branches: [ "main" ]
811

@@ -16,6 +19,12 @@ jobs:
1619
-
1720
name: Set up Docker Buildx
1821
uses: docker/setup-buildx-action@v3
22+
-
23+
name: Docker meta
24+
id: meta
25+
uses: docker/metadata-action@v5
26+
with:
27+
images: ${{ secrets.DOCKERHUB_USERNAME }}/openai-proxy-docker
1928
-
2029
name: Login to DockerHub
2130
uses: docker/login-action@v3
@@ -28,4 +37,5 @@ jobs:
2837
uses: docker/build-push-action@v5
2938
with:
3039
push: true
31-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/openai-proxy-docker:latest
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)