Skip to content

Commit d0c4489

Browse files
Mauyhasklassiker
andauthored
Add harbor.migration.enclaive.cloud to update-workflow (#14)
Co-authored-by: klassiker <6598117+klassiker@users.noreply.github.com>
1 parent e6c8fad commit d0c4489

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/update.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ jobs:
2727
with:
2828
registry: harbor.enclaive.cloud
2929
username: ${{ vars.HARBOR_USERNAME }}
30-
password: ${{ secrets.HARBOR_SECRET }}
30+
password: ${{ secrets.HARBOR_PASSWORD }}
31+
32+
- name: Login to migration harbor
33+
uses: docker/login-action@v3
34+
with:
35+
registry: harbor.migration.enclaive.cloud
36+
username: ${{ vars.HARBOR_USERNAME_MIG }}
37+
password: ${{ secrets.HARBOR_PASSWORD_MIG }}
3138

3239
- name: Package, upload, cosign
3340
env:
@@ -37,7 +44,11 @@ jobs:
3744
helm lint .
3845
helm package .
3946
helm inspect chart vhsm-*.tgz
47+
4048
helm push vhsm-*.tgz oci://harbor.enclaive.cloud/vhsm 2> metadata.txt
41-
49+
helm push vhsm-*.tgz oci://harbor.migration.enclaive.cloud/vhsm 2> metadata.txt
50+
51+
cat metadata.txt
52+
4253
DIGEST=$(grep ^Digest: metadata.txt | cut -d" " -f2)
4354
cosign sign --yes --key env://COSIGN_PRIVATE_KEY "harbor.enclaive.cloud/vhsm/vhsm@${DIGEST}"

0 commit comments

Comments
 (0)