File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Docker image
2+
3+ on :
4+ pull_request :
5+ branches : [ main, sd3 ]
6+ workflow_dispatch :
7+
8+ jobs :
9+ check_and_build :
10+ name : Check for new release and build multiarch Docker image
11+ runs-on : ubuntu-latest
12+ permissions :
13+ packages : write
14+ contents : write
15+ id-token : write
16+ steps :
17+ - name : Check out the repo
18+ uses : actions/checkout@v4
19+
20+ - name : Set up Docker Buildx
21+ uses : docker/setup-buildx-action@v3
22+
23+ - name : Log in to Docker Hub
24+ uses : docker/login-action@v3
25+ with :
26+ username : ${{ secrets.DOCKER_USERNAME }}
27+ password : ${{ secrets.DOCKER_PASSWORD }}
28+
29+ - name : Extract metadata (tags, labels) for Docker
30+ id : meta
31+ uses : docker/metadata-action@v5
32+ with :
33+ images : umagistr/kohya-sd-scripts
34+ tags : |
35+ type=raw,value=latest
36+
37+ - name : Build and push multiarch Docker image
38+ uses : docker/build-push-action@v6
39+ with :
40+ context : .
41+ file : Dockerfile
42+ push : true
43+ platforms : linux/amd64,linux/arm64
44+ tags : ${{ steps.meta.outputs.tags }}
45+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments