Skip to content

Conversation

@nvanthao
Copy link
Member

I've added a sample Github Action to create a Replicated release for Unstable channel.

The secret REPLICATED_API_TOKEN is created at the repo using platform-examples Service Account in Replicated QA team.

working-directory: ${{ env.APP_DIR }}

steps:
- uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use actions/checkout@v4


jobs:
push-to-replicated:
runs-on: ubuntu-22.04
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use ubuntu-latest?


- name: Update HelmChart kind
run: |
yq -i '.spec.chart.chartVersion = "${{ env.VERSION }}"' ./replicated/kots-chart.yaml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use sed, then no need install yq

like sed -i "s/\(chartVersion: \).*/\1$VERSION/" your-file.yaml

@adamancini adamancini merged commit 09fd899 into main Mar 12, 2025
@adamancini adamancini deleted the gerard/sc-120949/gh-action branch March 12, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants