Update hmctspublic.azurecr.io/jenkins/jenkins Docker tag to v2.491-830 in jenkins #25741
Workflow file for this run
This file contains 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: Flux sanity checks | |
# yamllint disable-line | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
static_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pre-reqs | |
run: | | |
sudo apt update | |
sudo apt-get install -y yamllint | |
- name: Install yq | |
env: | |
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }} | |
run: ./tests/install-tools.sh | |
- name: Verify CODEOWNERs | |
run: ./tests/code-owner-check.sh | |
- name: Image Policy Tests | |
run: ./tests/image-policy-exists.sh | |
- name: Lint Tests | |
run: ./tests/lint-yaml.sh | |
- name: Fluxv2 Image Automation | |
run: ./tests/flux-v2-image-automation.sh | |
schema: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
environment: [sbox, ptlsbox, dev, ptl, ithc, test, demo, stg, prod] | |
cluster: ["00", "01"] | |
exclude: | |
- environment: ptlsbox | |
cluster: "01" | |
- environment: ptl | |
cluster: "01" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install yq | |
env: | |
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }} | |
run: ./tests/install-tools.sh | |
- name: Install Flux CLI | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 2 | |
max_attempts: 5 | |
shell: bash | |
command: | | |
FLUX_VERSION=$(yq eval 'select(.kind=="Namespace") | .metadata.labels."app.kubernetes.io/version"' apps/flux-system/base/gotk-components.yaml | sed 's/v//') | |
curl -s https://fluxcd.io/install.sh | sudo FLUX_VERSION=${FLUX_VERSION} bash | |
- name: Install kubeconform | |
env: | |
# renovate: datasource=github-releases depName=yannh/kubeconform | |
KUBECONFORM_VERSION: v0.6.1 | |
run: | | |
set -ex | |
curl -sL https://github.com/yannh/kubeconform/releases/download/$KUBECONFORM_VERSION/kubeconform-linux-amd64.tar.gz | tar xz | |
cp kubeconform /usr/local/bin/ | |
chmod +x /usr/local/bin/kubeconform | |
- name: Dry run and kubeconform ${{ matrix.environment }}-${{ matrix.cluster }} | |
run: ./tests/dry-run-kustomize.sh ${{ matrix.environment }} ${{ matrix.cluster }} |