File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments