Generate-Regsync-Config #123
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
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@v3 | |
- name: Generate Regsync Config | |
run: | | |
make pull-scripts | |
make regsync | |
- name: Install Regsync | |
run: | | |
curl --silent --fail --location --output regsync https://github.com/regclient/regclient/releases/download/v0.4.8/regsync-linux-amd64 | |
chmod +x regsync | |
- name: Sync Images to Registry | |
run: | | |
head regsync.yaml | |
time ./regsync once --config regsync.yaml | |
env: | |
REGISTRY_ENDPOINT: ${{ secrets.REGISTRY_ENDPOINT }} | |
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} | |
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} |