Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitsakala committed Aug 1, 2023
1 parent 3b67e54 commit 8f6fcfd
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/regsync-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,40 @@ on:

jobs:
build:
if: github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'release-v2.7'
if: github.event.pull_request.base.ref == 'release-v2.7'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# Need to remove export version once rancher/charts gets the latest version
# of charts-build-script binary.

- name: Generate Regsync Config
- name: Generate RegSync & Commit
run: |
gh pr checkout ${{ github.event.pull_request.number }}
export CHARTS_BUILD_SCRIPT_VERSION=v0.4.2
make pull-scripts
make regsync
git add regsync.yaml
git config --global user.name "Github Action RegSync"
git config --global user.email "github@action.com"
git commit -m "Updating regsync.yaml"
git branch
git status
git push
env:
GH_TOKEN: ${{ github.token }}

- 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: Setup tmate session
uses: mxschmitt/action-tmate@v3
env:
GH_TOKEN: ${{ github.token }}

- name: Sync Images to Registry
run: |
head regsync.yaml
Expand Down

0 comments on commit 8f6fcfd

Please sign in to comment.