Skip to content

Fix update krew-index job #1187

Fix update krew-index job

Fix update krew-index job #1187

Workflow file for this run

---
name: Validation
on:
pull_request:
# Unlabeled is needed when `dependent` label is removed, to re-validate the release.
types: [unlabeled, opened, synchronize, reopened]
permissions: {}
jobs:
yamls:
name: Release YAMLs
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
fetch-depth: 0
- name: Validate release YAMLs
run: make validate
# This job runs the script in "dryrun" mode, not doing any changes to the repo.
# This should make sure the script at least works as intended (given a valid yaml).
release:
name: Dry-run the Release
needs: yamls
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
fetch-depth: 0
- name: Set up QEMU (to support building on non-native architectures)
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
- name: Create the release in dry-run mode
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: make do-release DRY_RUN=true