Skip to content

Commit

Permalink
Update updates.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: John Osborne <josborne@chainguard.dev>
  • Loading branch information
johnfosborneiii authored Nov 19, 2024
1 parent a4e3917 commit 50f1c72
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,12 @@ jobs:
env:
GH_TOKEN: ${{ steps.octo-sts.outputs.token }}
run: |
cd $GITHUB_WORKSPACE
BRANCH_NAME="updates-$(date +%Y%m%d%H%M%S)"
gh repo clone ${{ github.repository }} repo
cd repo
gh repo sync
git checkout main
git checkout -b $BRANCH_NAME
yq -i ".image.tag = \"${{ env.LATEST_UNIQUE_TAG }}\"" helm/redis/values.yaml
gh repo chainguard-dev/chaingard-migration-demo --clone=false --remote=true --remote-name=updates
gh repo sync
gh branch create $BRANCH_NAME
gh repo push origin $BRANCH_NAME
# gh pr create \
# --title "Update Helm Redis Image Tag" \
# --body "This PR remdiates CVEs: \"${{ env.CVE_LIST }}\"" \
# --head "updates" \
# --base "main" \
# --label "CVE-fix"
git add helm/redis/values.yaml
git commit -m "Update Helm Redis Image Tag to ${{ env.LATEST_UNIQUE_TAG }}"
git push origin $BRANCH_NAME
gh pr create --title "Update Helm Redis Image Tag" --body "This PR remediates CVEs: \"${{ env.CVE_LIST }}\"" --head "$BRANCH_NAME" --base "main" --label "CVE-fix"

0 comments on commit 50f1c72

Please sign in to comment.