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 6b268c8
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/regsync-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,41 @@ 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 $PR_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
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.number }}


- 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 6b268c8

Please sign in to comment.