Skip to content

Commit

Permalink
Create workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
APErebus authored Dec 7, 2023
1 parent bba5eba commit 58e1b24
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/kubernetes-tentacle-publish-chart.yaml
Original file line number Diff line number Diff line change
@@ -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


0 comments on commit 58e1b24

Please sign in to comment.