Skip to content

Commit

Permalink
modifying to push to github container registry
Browse files Browse the repository at this point in the history
  • Loading branch information
MJRichardson committed Jul 17, 2024
1 parent 78afb3b commit edbadca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/octopus-publish-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
octopus-version:
description: 'The SemVer version of Octopus to publish. e.g. 2022.4.20121'
required: true

jobs:
publish:
Expand All @@ -21,13 +17,13 @@ jobs:
with:
version: 'v3.15.3'

- name: Login to DockerHub
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | helm registry login registry-1.docker.io -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Login to GitHub container registry
run: echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io -u ${{github.actor}} --password-stdin

- name: Package Chart
run: helm package --version '${{ inputs.octopus-version }}' --app-version '${{ inputs.octopus-version }}' 'charts/octopus-deploy'
run: helm package --version '0.1.0' 'charts/octopus-deploy'

- name: Push Chart to DockerHub
run: helm push 'octopusdeploy-helm-${{ inputs.octopus-version }}.tgz' oci://registry-1.docker.io/octopusdeploy
- name: Push Chart
run: helm push 'octopusdeploy-helm-${{ inputs.octopus-version }}.tgz' oci://ghcr.io/octopusdeploy/octopusdeploy-helm


2 changes: 1 addition & 1 deletion charts/octopus-deploy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ version: 0.0.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "2022.4"
appVersion: "2024.2"

0 comments on commit edbadca

Please sign in to comment.