1
- name : Build Docker Image
1
+ name : Build
2
2
on :
3
3
schedule :
4
4
- cron : ' 30 11 * * *'
@@ -14,12 +14,12 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
with :
17
- ref : ' main'
17
+ ref : main
18
18
fetch-depth : 100
19
19
20
20
- name : Determine latest version
21
21
id : latest_version
22
- uses : flownative/action-git-latest-release@1
22
+ uses : flownative/action-git-latest-release@v1
23
23
24
24
- run : |
25
25
sudo chmod -R ugo+rwX . && shopt -s dotglob && rm -rf *
37
37
latest=true
38
38
images : |
39
39
flownative/redis
40
+ harbor.flownative.io/beach/redis
40
41
europe-docker.pkg.dev/flownative/docker/redis
41
42
labels : |
42
43
org.opencontainers.image.title=Redis
53
54
id : qemu
54
55
uses : docker/setup-qemu-action@v3
55
56
56
- -
57
- name : Set up Docker Buildx
57
+ - name : Set up Docker Buildx
58
58
id : buildx
59
59
uses : docker/setup-buildx-action@v3
60
60
71
71
username : ' _json_key'
72
72
password : ${{ secrets.GOOGLE_ARTIFACTS_PASSWORD_DOCKER }}
73
73
74
+ - name : Login to Harbor
75
+ uses : docker/login-action@v3
76
+ with :
77
+ registry : harbor.flownative.io
78
+ username : ${{ secrets.HARBOR_BEACH_USERNAME }}
79
+ password : ${{ secrets.HARBOR_BEACH_PASSWORD }}
80
+
74
81
- name : Build Docker image
75
82
uses : docker/build-push-action@v6
76
83
with :
@@ -91,22 +98,33 @@ jobs:
91
98
92
99
release-helm :
93
100
runs-on : ubuntu-latest
101
+ needs : build
102
+ permissions :
103
+ contents : write
104
+ packages : write
94
105
steps :
95
106
- uses : actions/checkout@v4
96
107
with :
97
- ref : main
108
+ ref : ' main'
109
+ fetch-depth : 100
98
110
99
111
- name : Determine latest version
100
112
id : latest_version
101
113
uses : flownative/action-git-latest-release@1
102
114
103
- - name : Release Helm chart
104
- uses : flownative/action-helm-release@v2
115
+ - name : Configure Git
116
+ run : |
117
+ git config user.name "$GITHUB_ACTOR"
118
+ git config user.email "[email protected] "
119
+
120
+ - name : Release Helm chart (Harbor)
121
+ uses :
flownative/[email protected]
105
122
with :
106
123
charts_folder : ' Helm'
107
124
chart_name : ' redis'
108
125
chart_version : ${{ steps.latest_version.outputs.tag }}
109
126
app_version : ${{ steps.latest_version.outputs.tag }}
110
- repository_url : ' https://charts.flownative.io'
111
- repository_user : ' ${{ secrets.CHARTMUSEUM_USER }}'
112
- repository_password : ' ${{ secrets.CHARTMUSEUM_PASSWORD }}'
127
+ registry_host : ' harbor.flownative.io'
128
+ repository_path : ' beach-charts'
129
+ repository_user : ${{ secrets.HARBOR_BEACH_CHARTS_USERNAME }}
130
+ repository_password : ${{ secrets.HARBOR_BEACH_CHARTS_PASSWORD }}
0 commit comments