Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
  • Loading branch information
tormath1 committed Nov 27, 2023
1 parent 3ee5647 commit ac273ef
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/sync-calico-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,26 @@ jobs:
steps:
- name: Check out scripts
uses: actions/checkout@v3
- name: Update links to Tigera Operator manifest
id: update-links
run: .github/workflows/sync-calico-version.sh
- name: Create pull request
uses: peter-evans/create-pull-request@v4
if: steps.update-links.outputs.UPDATE_NEEDED == 1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: calico-update-${{ steps.update-links.outputs.CALICO_VERSION }}
title: Update calico to ${{ steps.update-links.outputs.CALICO_VERSION }}
commit-message: Update calico to ${{ steps.update-links.outputs.CALICO_VERSION }}
delete-branch: true
#- name: Update links to Tigera Operator manifest
# id: update-links
# run: .github/workflows/sync-calico-version.sh
#- name: Create pull request
# uses: peter-evans/create-pull-request@v4
# if: steps.update-links.outputs.UPDATE_NEEDED == 1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# branch: calico-update-${{ steps.update-links.outputs.CALICO_VERSION }}
# title: Update calico to ${{ steps.update-links.outputs.CALICO_VERSION }}
# commit-message: Update calico to ${{ steps.update-links.outputs.CALICO_VERSION }}
# delete-branch: true
- name: Login to GitHub Container Registry (ghcr)
if: steps.update-links.outputs.UPDATE_NEEDED == 1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Mirror calico images to GHCR
if: steps.update-links.outputs.UPDATE_NEEDED == 1
env:
CALICO_VERSION: ${{ steps.update-links.outputs.CALICO_VERSION }}
CALICO_VERSION: v3.26.4
GHCR_ORG: ${{ inputs.ghcr_org }}
run: .github/workflows/mirror-calico-images.sh "${GHCR_ORG:-flatcar}" "${CALICO_VERSION}"

0 comments on commit ac273ef

Please sign in to comment.