2023-05-03 21:00:57 +00:00
|
|
|
# Generate-Regsync-Config action will checkout release-v2.7 branch, run make regsync target and
|
|
|
|
# creates a pull request from rancherbot/charts or rancher/charts release-v2.7 branch with any image additions
|
|
|
|
# to regsync config file. This action is triggered whenever something is pushed into release-v2.7 branch.
|
|
|
|
|
|
|
|
name: Generate-Regsync-Config
|
|
|
|
|
|
|
|
on:
|
2023-06-22 14:54:09 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "eio-regsync-testing"
|
|
|
|
# Commented out for testing in the eio-regsync-testing branch
|
|
|
|
# pull_request_review:
|
|
|
|
# types: [submitted, edited]
|
2023-05-03 21:00:57 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-06-22 14:54:09 +00:00
|
|
|
# if: github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'release-v2.7'
|
2023-05-03 21:00:57 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-06-20 20:04:45 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-05-03 21:00:57 +00:00
|
|
|
|
|
|
|
# Need to remove export version once rancher/charts gets the latest version
|
|
|
|
# of charts-build-script binary.
|
|
|
|
- name: Generate Regsync
|
|
|
|
run: |
|
|
|
|
export CHARTS_BUILD_SCRIPT_VERSION=v0.4.2
|
|
|
|
make pull-scripts
|
|
|
|
make regsync
|
2023-06-21 16:49:01 +00:00
|
|
|
|
2023-06-20 17:30:21 +00:00
|
|
|
- name: Install Regsync
|
|
|
|
run: |
|
|
|
|
curl -o regsync https://github.com/regclient/regclient/releases/download/v0.4.8/regsync-linux-amd64
|
2023-06-20 20:04:45 +00:00
|
|
|
chmod +x regsync
|
2023-05-03 21:00:57 +00:00
|
|
|
|
2023-06-21 16:49:01 +00:00
|
|
|
- name: Sync Charts
|
|
|
|
run: |
|
2023-06-22 15:02:54 +00:00
|
|
|
./regsync --help
|
2023-06-21 16:49:01 +00:00
|
|
|
env:
|
|
|
|
REGISTRY_ENDPOINT: ${{ secrets.REGISTRY_ENDPOINT }}
|
|
|
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
|
|
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|