@@ -117,3 +117,74 @@ jobs:
117
117
118
118
- name : Image digest
119
119
run : echo ${{ steps.docker_build.outputs.digest }}
120
+ build-code-server :
121
+ runs-on : ubuntu-latest
122
+ steps :
123
+ - name : Checkout Repo ✅
124
+ uses : actions/checkout@v2
125
+
126
+ - name : Job preparation 🛫 # Steps that must be carried out before creating the Docker images
127
+ uses : ./.github/actions/shared-build-steps
128
+ with :
129
+ dockerhub_user : ${{ secrets.DOCKERHUB_USER }}
130
+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
131
+ runner_os : ${{ runner.os }}
132
+ github_sha : ${{ github.sha }}
133
+
134
+ - name : Docker meta 💬 # Creating meta information such as the image tag for the Docker image
135
+ id : meta
136
+ uses : docker/metadata-action@v5
137
+ with :
138
+ images : codecentric/from-jupyter-to-production-code-server
139
+
140
+ - name : Build and push code-server Docker image 🔨🐳
141
+ id : docker_build_code-server
142
+
143
+ with :
144
+ context : .
145
+ file : ./docker/code-server/Dockerfile
146
+ tags : ${{ steps.meta.outputs.tags }}
147
+ push : ${{ github.event_name != 'pull_request' }}
148
+ builder : ${{ steps.buildx.outputs.name }}
149
+ cache-from : type=local,src=/tmp/.buildx-cache
150
+ cache-to : type=local,dest=/tmp/.buildx-cache
151
+ platforms : linux/amd64,linux/arm64
152
+
153
+ - name : Image digest
154
+ run : echo ${{ steps.docker_build.outputs.digest }}
155
+
156
+ build-registry :
157
+ runs-on : ubuntu-latest
158
+ steps :
159
+ - name : Checkout Repo ✅
160
+ uses : actions/checkout@v2
161
+
162
+ - name : Job preparation 🛫 # Steps that must be carried out before creating the Docker images
163
+ uses : ./.github/actions/shared-build-steps
164
+ with :
165
+ dockerhub_user : ${{ secrets.DOCKERHUB_USER }}
166
+ dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
167
+ runner_os : ${{ runner.os }}
168
+ github_sha : ${{ github.sha }}
169
+
170
+ - name : Docker meta 💬 # Creating meta information such as the image tag for the Docker image
171
+ id : meta
172
+ uses : docker/metadata-action@v5
173
+ with :
174
+ images : codecentric/from-jupyter-to-production-registry
175
+
176
+ - name : Build and push registry Docker image 🔨🐳
177
+ id : docker_build_registry
178
+
179
+ with :
180
+ context : .
181
+ file : ./docker/registry/Dockerfile
182
+ tags : ${{ steps.meta.outputs.tags }}
183
+ push : ${{ github.event_name != 'pull_request' }}
184
+ builder : ${{ steps.buildx.outputs.name }}
185
+ cache-from : type=local,src=/tmp/.buildx-cache
186
+ cache-to : type=local,dest=/tmp/.buildx-cache
187
+ platforms : linux/amd64,linux/arm64
188
+
189
+ - name : Image digest
190
+ run : echo ${{ steps.docker_build.outputs.digest }}
0 commit comments