Skip to content

Commit f0ee97a

Browse files
committed
release docker images for tag in main branch
Signed-off-by: Peter Pan <[email protected]>
1 parent 82a973c commit f0ee97a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release Docker Images
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags:
7+
- 'v*'
8+
9+
env:
10+
REGISTRY: docker.io
11+
IMAGE_NAME: AUTOMATIC1111/stable-diffusion-webui
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
environment: 'prod'
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Login to Docker Hub
22+
uses: docker/login-action@v3
23+
with:
24+
username: ${{ secrets.DOCKERHUB_USERNAME }}
25+
password: ${{ secrets.DOCKERHUB_TOKEN }}
26+
27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v3
29+
-
30+
name: Set up Docker Buildx
31+
uses: docker/setup-buildx-action@v3
32+
33+
34+
- name: Build and push
35+
uses: docker/build-push-action@v6
36+
with:
37+
file: docker/Dockerfile
38+
platforms: linux/amd64
39+
push: true
40+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)