Merge pull request #2730 from rancher/eio-regsync-testing

Initial commit for testing charts automation
pull/2736/head
Sakala Venkata Krishna Rohit 2023-06-20 15:08:52 -07:00 committed by GitHub
commit e3d59d89ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 17 deletions

View File

@ -5,18 +5,15 @@
name: Generate-Regsync-Config
on:
push:
branches:
- release-v2.7
pull_request_review:
types: [submitted, edited]
jobs:
build:
if: github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'release-v2.7'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: release-v2.7
- uses: actions/checkout@v3
# Need to remove export version once rancher/charts gets the latest version
# of charts-build-script binary.
@ -25,14 +22,11 @@ jobs:
export CHARTS_BUILD_SCRIPT_VERSION=v0.4.2
make pull-scripts
make regsync
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-paths: |
regsync.yaml
token: ${{secrets.PUSH_TO_FORKS_SUBMIT_PRS}}
push-to-fork: rancherbot/charts
title: 'Update regsync config images file'
branch-suffix: timestamp
- name: Install Regsync
run: |
curl -o regsync https://github.com/regclient/regclient/releases/download/v0.4.8/regsync-linux-amd64
chmod +x regsync
time ./regsync check --config regsync.yaml