Skip to content

Commit 310e57e

Browse files
authored
Update release.yaml
1 parent cc76a48 commit 310e57e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release a Docker image
1+
name: Release Workflow
22

33
on:
44
push:
@@ -24,6 +24,9 @@ jobs:
2424
steps:
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
27+
- name: Update container in operator JSON
28+
run: |
29+
jq --arg variable "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF##*/}" '.container = $variable' operator.json
2730
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
2831
- name: Log in to the Container registry
2932
uses: docker/login-action@v3.3.0
@@ -51,8 +54,9 @@ jobs:
5154
push: true
5255
tags: ${{ steps.meta.outputs.tags }}
5356
labels: ${{ steps.meta.outputs.labels }}
57+
# A PAT is needed for this action, GITHUB_TOKEN cannot get relevant permission
5458
# secrets: |
55-
# GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
59+
# github_pat=${{ secrets.GH_PAT }}
5660
- name: Create required package.json
5761
run: echo '{}' > package.json
5862
- name: Build changelog

0 commit comments

Comments
 (0)