mirror #64
This file contains hidden or 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
| name: mirror | |
| # Mirrors envoyproxy/envoy releases to ghcr.io/yolean/envoy. | |
| # Runs unconditionally — never blocked by echo build/verify (separate workflow). | |
| on: | |
| schedule: | |
| - cron: "1 3 * * *" # 03:01 UTC daily | |
| push: | |
| branches: [main] | |
| paths: | |
| - mirror.sh | |
| - .github/workflows/mirror.yaml | |
| workflow_dispatch: | |
| inputs: | |
| min_version: | |
| description: 'Minimum envoy version to mirror (e.g. 1.38.0)' | |
| required: false | |
| default: '1.38.0' | |
| jobs: | |
| mirror: | |
| name: Mirror upstream releases | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: imjasonh/setup-crane@v0.4 | |
| - name: Login to ghcr.io | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run mirror | |
| env: | |
| MIN_VERSION: ${{ github.event.inputs.min_version || '1.38.0' }} | |
| run: ./mirror.sh |