File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 27
27
platforms : ${{ matrix.platforms }}
28
28
runs-on : ${{ matrix.runs-on }}
29
29
secrets :
30
- dockerUsername : ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
31
- dockerPassword : ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
30
+ dockerUsername : ${{ secrets.DOCKERHUB_USERNAME }}
31
+ dockerPassword : ${{ secrets.DOCKERHUB_PASSWORD }}
32
+ quayUsername : ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
33
+ quayPassword : ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
32
34
strategy :
33
35
# Pushing with all jobs in parallel
34
36
# eats the bandwidth of all the nodes
@@ -107,8 +109,10 @@ jobs:
107
109
platforms : ${{ matrix.platforms }}
108
110
runs-on : ${{ matrix.runs-on }}
109
111
secrets :
110
- dockerUsername : ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
111
- dockerPassword : ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
112
+ dockerUsername : ${{ secrets.DOCKERHUB_USERNAME }}
113
+ dockerPassword : ${{ secrets.DOCKERHUB_PASSWORD }}
114
+ quayUsername : ${{ secrets.LOCALAI_REGISTRY_USERNAME }}
115
+ quayPassword : ${{ secrets.LOCALAI_REGISTRY_PASSWORD }}
112
116
strategy :
113
117
matrix :
114
118
include :
Original file line number Diff line number Diff line change 46
46
required : true
47
47
dockerPassword :
48
48
required : true
49
+ quayUsername :
50
+ required : true
51
+ quayPassword :
52
+ required : true
49
53
jobs :
50
54
reusable_image-build :
51
55
runs-on : ${{ inputs.runs-on }}
@@ -100,7 +104,9 @@ jobs:
100
104
id : meta
101
105
uses : docker/metadata-action@v5
102
106
with :
103
- images : quay.io/go-skynet/local-ai
107
+ images : |
108
+ quay.io/go-skynet/local-ai
109
+ localai/localai
104
110
tags : |
105
111
type=ref,event=branch
106
112
type=semver,pattern={{raw}}
@@ -122,10 +128,17 @@ jobs:
122
128
if : github.event_name != 'pull_request'
123
129
uses : docker/login-action@v3
124
130
with :
125
- registry : quay.io
126
131
username : ${{ secrets.dockerUsername }}
127
132
password : ${{ secrets.dockerPassword }}
128
133
134
+ - name : Login to DockerHub
135
+ if : github.event_name != 'pull_request'
136
+ uses : docker/login-action@v3
137
+ with :
138
+ registry : quay.io
139
+ username : ${{ secrets.quayUsername }}
140
+ password : ${{ secrets.quayPassword }}
141
+
129
142
- name : Build and push
130
143
uses : docker/build-push-action@v5
131
144
with :
You can’t perform that action at this time.
0 commit comments