Skip to content

Commit

Permalink
fixup added helm and docker info to release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag4DSB committed Nov 13, 2024
1 parent 40ca98b commit ce926f0
Showing 1 changed file with 55 additions and 21 deletions.
76 changes: 55 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,9 @@ jobs:
tag: ${{ inputs.tag }}
platforms: ${{ inputs.all_platforms && 'linux/amd64,linux/arm64' || 'linux/amd64' }}

create-docker-info:
runs-on: ubuntu-latest
needs: prod-container-build
steps:
- name: Create Docker Image Info File
run: echo "Docker image - ghcr.io/${{ github.repository_owner }}/cosi:${{ inputs.tag }}" > docker-image-info.txt

- name: Upload Docker Info as Artifact
uses: actions/upload-artifact@v4
with:
name: docker-image-info
path: docker-image-info.txt

create-github-release:
runs-on: ubuntu-latest
needs: [create-docker-info, package-helm-chart]
needs: [prod-container-build, package-helm-chart]
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand All @@ -49,20 +36,41 @@ jobs:
with:
name: helm-chart

- name: Download Docker Info Artifact
uses: actions/download-artifact@v4
with:
name: docker-image-info

- name: Upload Assets and Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
docker-image-info.txt
scality-cosi-driver-${{ inputs.tag }}.tgz
tag_name: ${{ inputs.tag }}
name: Release ${{ inputs.tag }}
body: "Release for tag ${{ inputs.tag }}"
body: |
Release for tag ${{ inputs.tag }}
### Docker Image:
The Docker image for this release is available at:
```
ghcr.io/${{ github.repository }}:${{ inputs.tag }}
```
### Helm Chart:
You can install the Helm chart using the following command:
```
helm install scality-cosi-driver oci://ghcr.io/${{ github.repository }}/helm-charts/scality-cosi-driver --version ${{ inputs.tag }}
```
### Helm Chart Details:
To view details of the chart:
```
helm show all oci://ghcr.io/${{ github.repository }}/helm-charts/scality-cosi-driver --version ${{ inputs.tag }}
```
### Template the Helm Chart:
To render the Helm templates:
```
helm template oci://ghcr.io/${{ github.repository }}/helm-charts/scality-cosi-driver --version ${{ inputs.tag }}
```
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -98,7 +106,33 @@ jobs:
scality-cosi-driver-${{ inputs.tag }}.tgz
tag_name: ${{ inputs.tag }}
name: Release ${{ inputs.tag }}
body: "Release for tag ${{ inputs.tag }}"
body: |
Release for tag ${{ inputs.tag }}
### Docker Image:
The Docker image for this release is available at:
```
ghcr.io/${{ github.repository_owner }}/cosi:${{ inputs.tag }}
```
### Helm Chart:
You can install the Helm chart using the following command:
```
helm install scality-cosi-driver oci://ghcr.io/${{ github.repository }}/helm-charts/scality-cosi-driver --version ${{ inputs.tag }}
```
### Helm Chart Details:
To view details of the chart:
```
helm show all oci://ghcr.io/${{ github.repository }}/helm-charts/scality-cosi-driver --version ${{ inputs.tag }}
```
### Template the Helm Chart:
To render the Helm templates:
```
helm template oci://ghcr.io/${{ github.repository }}/helm-charts/scality-cosi-driver --version ${{ inputs.tag }}
```
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit ce926f0

Please sign in to comment.