1
1
name : Release
2
2
3
3
on :
4
- pull_request :
5
- branches :
6
- - main
7
4
release :
8
5
types : [created]
9
6
@@ -12,7 +9,7 @@ permissions:
12
9
13
10
jobs :
14
11
publish-image :
15
- # if: startsWith(github.ref, 'refs/tags/v') == true
12
+ if : startsWith(github.ref, 'refs/tags/v') == true
16
13
runs-on : ubuntu-22.04
17
14
18
15
permissions :
@@ -46,53 +43,53 @@ jobs:
46
43
with :
47
44
registry : ghcr.io
48
45
username : loft-sh
49
- # password: ${{ secrets.GITHUB_TOKEN }}
50
- # - name: Build and push the hooks
51
- # uses: docker/build-push-action@v4
52
- # working-directory: ./examples/hooks
53
- # id: docker_build
54
- # with:
55
- # file: Dockerfile
56
- # platforms: linux/amd64,linux/arm64
57
- # push: true
58
- # tags: "ghcr.io/loft-sh/vcluster-example-hooks: ${{steps.get_version .outputs.release_version}}"
59
- # labels: ${{ steps.docker_meta.outputs.labels }}
46
+ password : ${{ secrets.GITHUB_TOKEN }}
47
+ - name : Build and push the hooks
48
+ uses : docker/build-push-action@v4
49
+ id : docker_build_hooks
50
+ with :
51
+ file : ./examples/hooks/Dockerfile
52
+ platforms : linux/amd64,linux/arm64
53
+ push : true
54
+ tags : " ghcr.io/loft-sh/vcluster-example-hooks:${{steps.get_version.outputs.release_version}} "
55
+ labels : ${{ steps.docker_meta .outputs.labels }}
56
+ context : ./examples/hooks
60
57
- name : Images digests for
61
- run : echo ${{ steps.docker_build .outputs.digest }}
58
+ run : echo ${{ steps.docker_build_hooks .outputs.digest }}
62
59
- name : Build and push the bootstrap
63
- id : docker_build
64
- working-directory : ./examples/bootstrap-with-deployment
65
60
uses : docker/build-push-action@v4
61
+ id : docker_build_bootstrap
66
62
with :
67
- file : Dockerfile
63
+ file : ./examples/bootstrap-with-deployment/Dockerfile
64
+ context : ./examples/bootstrap-with-deployment
68
65
platforms : linux/amd64,linux/arm64
69
66
push : true
70
67
tags : " ghcr.io/loft-sh/vcluster-example-bootstrap-bootstrap-with-deployment:${{steps.get_version.outputs.release_version}}"
71
68
labels : ${{ steps.docker_meta.outputs.labels }}
72
69
- name : Images digests for bootstrap
73
- run : echo ${{ steps.docker_build .outputs.digest }}
70
+ run : echo ${{ steps.docker_build_bootstrap .outputs.digest }}
74
71
- name : Build and push import secret
75
- working-directory : ./examples/import-secrets
76
- id : docker_build
77
72
uses : docker/build-push-action@v4
73
+ id : docker_build_import_secret
78
74
with :
79
- file : Dockerfile
75
+ file : ./examples/import-secrets/Dockerfile
76
+ context : ./examples/import-secrets
80
77
platforms : linux/amd64,linux/arm64
81
78
push : true
82
79
tags : " ghcr.io/loft-sh/vcluster-example-import-secrets:${{steps.get_version.outputs.release_version}}"
83
80
labels : ${{ steps.docker_meta.outputs.labels }}
84
81
- name : Images digests for import secret
85
- run : echo ${{ steps.docker_build .outputs.digest }}
82
+ run : echo ${{ steps.docker_build_import_secret .outputs.digest }}
86
83
- name : Build and push crd sync
87
- working-directory : ./examples/crd-sync
88
- id : docker_build
89
84
uses : docker/build-push-action@v4
85
+ id : docker_build_crd_sync
90
86
with :
91
- file : Dockerfile
87
+ file : ./examples/crd-sync/Dockerfile
88
+ context : ./examples/crd-sync/
92
89
platforms : linux/amd64,linux/arm64
93
90
push : true
94
91
tags : " ghcr.io/loft-sh/vcluster-example-crd-sync:${{steps.get_version.outputs.release_version}}"
95
92
labels : ${{ steps.docker_meta.outputs.labels }}
96
93
- name : Images digests for crd sync
97
- run : echo ${{ steps.docker_build .outputs.digest }}
94
+ run : echo ${{ steps.docker_build_crd_sync .outputs.digest }}
98
95
0 commit comments