From 58e1b2469fd285ce2a00d80856c5f26d45b32b72 Mon Sep 17 00:00:00 2001 From: Alastair Pitts Date: Thu, 7 Dec 2023 15:15:23 +1100 Subject: [PATCH] Create workflow --- .../kubernetes-tentacle-publish-chart.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/kubernetes-tentacle-publish-chart.yaml diff --git a/.github/workflows/kubernetes-tentacle-publish-chart.yaml b/.github/workflows/kubernetes-tentacle-publish-chart.yaml new file mode 100644 index 00000000..bceaf4a9 --- /dev/null +++ b/.github/workflows/kubernetes-tentacle-publish-chart.yaml @@ -0,0 +1,27 @@ +name: Publish Chart + +on: + pull_request: + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install Helm + uses: azure/setup-helm@v3 + with: + version: 'v3.13.2' + + - name: Login to DockerHub + run: echo ${{ secrets.DOCKERHUB_TOKEN }} | helm registry login registry-1.docker.io -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin + + - name: Package Chart + run: helm package --version '${{ inputs.octopus-version }}' --app-version '${{ inputs.octopus-version }}' 'charts/octopus-deploy' + + - name: Push Chart to DockerHub + run: helm push 'octopusdeploy-helm-${{ inputs.octopus-version }}.tgz' oci://registry-1.docker.io/octopusdeploy + +