Skip to content

Commit 1317c30

Browse files
committed
chore: add the annotations needed for original of source to the oci images
1 parent e6132ff commit 1317c30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release-please.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ jobs:
5353
var chartPath = '${{ matrix.path }}';
5454
var chartName = chartPath.split('/')[1];
5555
var chartVersion = release[`${chartPath}--version`];
56+
var gitTag = release[`${chartPath}--tag_name`]
5657
core.setOutput('chart-path', chartPath)
5758
core.setOutput('chart-name',chartName);
5859
core.setOutput('chart-version',chartVersion)
60+
core.setOutput('chart-git-tag', gitTag)
5961
- uses: actions/checkout@v4
6062
- name: Build dependencies Helm - ${{ steps.release.outputs.chart-name }}
6163
uses: WyriHaximus/github-action-helm3@v4
@@ -72,3 +74,7 @@ jobs:
7274
registry: ghcr.io
7375
registry_username: ${{ github.actor }}
7476
registry_password: ${{ secrets.github_token }}
77+
- uses: imjasonh/[email protected]
78+
- name: update docker images with annotations
79+
run: |
80+
crane mutate -a org.opencontainers.image.revision=${{ steps.release.outputs.chart-git-tag }},org.opencontainers.image.source=https://github.com/$GITHUB_REPOSITORY ghcr.io/pelotech/charts/${{ steps.release.outputs.chart-name }}:${{ steps.release.outputs.chart-version }}

0 commit comments

Comments
 (0)