Skip to content

Commit

Permalink
chore: fix update chart yaml (#3185)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeeeenster authored Dec 20, 2023
1 parent 73e866c commit a14eb23
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/platform-docker-publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
- name: Cloning repo
uses: actions/checkout@v3

- name: Checkout Target Charts Repository to update yaml
uses: actions/checkout@v3
with:
repository: flagsmith/flagsmith-charts
path: chart
token: ${{ secrets.GITHUB_TOKEN }}

- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
Expand Down Expand Up @@ -57,6 +64,18 @@ jobs:
TAG=${{github.ref_name}}
echo "version_trim=${TAG#v}" >> $GITHUB_ENV
- name: Run YAML to Github Output Action
id: yaml-output
uses: christian-ci/action-yaml-github-output@v2
with:
file_path: './chart/charts/flagsmith/Chart.yaml'

- uses: us-ignite/action-bump-semver@main
id: bump-semver
with:
current_version: ${{ steps.yaml-output.outputs.version }}
level: minor

- name: Update flagsmith-charts values.yaml with latest docker version
uses: fjogeleit/yaml-update-action@main
with:
Expand All @@ -71,5 +90,8 @@ jobs:
message: 'Flagsmith docker image version bump'
description: 'Automated PR generated by a release event in https://github.com/Flagsmith/flagsmith'
valueFile: 'charts/flagsmith/Chart.yaml'
value: ${{ env.version_trim }}
propertyPath: 'appVersion'
changes: |
{
"appVersion": "${{ env.version_trim }}",
"version": "${{ steps.bump-semver.outputs.new_version }}"
}

3 comments on commit a14eb23

@vercel
Copy link

@vercel vercel bot commented on a14eb23 Dec 20, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

docs – ./docs

docs-flagsmith.vercel.app
docs.bullet-train.io
docs.flagsmith.com
docs-git-main-flagsmith.vercel.app

@vercel
Copy link

@vercel vercel bot commented on a14eb23 Dec 20, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on a14eb23 Dec 20, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.