Skip to content

Commit 16a04db

Browse files
jordan-dahypergig
andauthored
cicd - helm publish (#14)
* tests and checks * removing silly logging * stubbing out publish job * publish * archive helm package --------- Co-authored-by: Jordan Cohen <hypergig@gmail.com>
1 parent af0d5b2 commit 16a04db

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Helm unittests
3030
run: make test
3131

32-
docker-build:
32+
docker-build-and-publish:
3333
runs-on: digital-asset-wallet-gateway
3434
permissions:
3535
contents: read
@@ -51,3 +51,26 @@ jobs:
5151
build-args: version=${{ steps.version.outputs.version }}
5252
push: true
5353
tags: ghcr.io/digital-asset/${{ env.TARGET }}/docker/wallet-gateway:v${{ steps.version.outputs.version }}
54+
55+
helm-publish:
56+
runs-on: digital-asset-wallet-gateway
57+
permissions:
58+
contents: read
59+
packages: write
60+
needs:
61+
- check
62+
- docker-build-and-publish
63+
steps:
64+
- uses: actions/checkout@v5
65+
- name: Get Version
66+
id: version
67+
run: echo "version=$(<VERSION)" | tee -a "${GITHUB_OUTPUT}"
68+
- name: Helm package
69+
run: make package
70+
- name: Archive helm package
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: helm package
74+
path: target/wallet-gateway-${{ steps.version.outputs.version }}.tgz
75+
- name: Helm push
76+
run: helm push --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} target/wallet-gateway-${{ steps.version.outputs.version }}.tgz oci://ghcr.io/digital-asset/${{ env.TARGET }}/helm/wallet-gateway

0 commit comments

Comments
 (0)