Skip to content

Commit 962075e

Browse files
authored
Create docker-publish.yml
1 parent b488c76 commit 962075e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
- name: Login to DockerHub
15+
uses: docker/login-action@v1
16+
with:
17+
username: ${{ secrets.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
19+
- name: Build and push Docker image
20+
uses: docker/build-push-action@v2
21+
with:
22+
context: .
23+
push: true
24+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/azure-openai-proxy:latest

0 commit comments

Comments
 (0)