File tree Expand file tree Collapse file tree 5 files changed +32
-42
lines changed Expand file tree Collapse file tree 5 files changed +32
-42
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
image-name :
7
7
required : true
8
8
type : string
9
+ tag-name :
10
+ required : true
11
+ type : string
9
12
10
13
env :
11
14
REGISTRY : ghcr.io
30
33
- name : Build and push Docker image
31
34
working-directory : src/${{ inputs.image-name }}
32
35
run : |
33
- docker build . --tag ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ inputs.image-name }}:latest
34
- docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ inputs.image-name }}:latest
36
+ docker build . --tag ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ inputs.image-name }}:${{ inputs.tag-name }}
37
+ docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}/${{ inputs.image-name }}:${{ inputs.tag-name }}
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v[0-9].*
7
+
8
+ jobs :
9
+ build-and-push-console :
10
+ uses : ./.github/workflows/docker-push.yaml
11
+ with :
12
+ image-name : console
13
+ tag-name : ${{ github.ref_name }}
14
+ permissions :
15
+ contents : read
16
+ packages : write
17
+
18
+ build-and-push-server :
19
+ uses : ./.github/workflows/docker-push.yaml
20
+ with :
21
+ image-name : server
22
+ tag-name : ${{ github.ref_name }}
23
+ permissions :
24
+ contents : read
25
+ packages : write
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ server:
222
222
tokenExpiration : 24
223
223
image :
224
224
repository : ghcr.io/torchiaf/code-editor/server
225
- tag : latest
225
+ tag : v0.1.0
226
226
pullPolicy : Always
227
227
ports :
228
228
- port : 8082
@@ -239,7 +239,7 @@ console:
239
239
type : ClusterIP
240
240
image :
241
241
repository : ghcr.io/torchiaf/code-editor/console
242
- tag : latest
242
+ tag : v0.1.0
243
243
pullPolicy : Always
244
244
env :
245
245
baseHref : " /code-editor/console/"
You can’t perform that action at this time.
0 commit comments