Production: Deploy new MediaWiki image ghcr.io/wbstack/mediawiki:sha-… #1741
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
| on: push | |
| name: Check values files | |
| jobs: | |
| diff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up helmfile | |
| uses: helmfile/helmfile-action@v2.0.5 | |
| with: | |
| helmfile-version: 'v0.162.0' | |
| helm-version: 'v3.12.2' | |
| helm-plugins: > | |
| https://github.com/databus23/helm-diff@v3.12.5 | |
| - name: Diff current values files against generated ones | |
| run: > | |
| set -x; | |
| for ENV_DIR in k8s/argocd/*; do | |
| ENV=$(basename "${ENV_DIR}") | |
| for RELEASE_FILE in "${ENV_DIR}"/*.values.yaml; do | |
| RELEASE=$(basename "${RELEASE_FILE}" .values.yaml) | |
| TMP_VALUES=$(mktemp) | |
| if [[ $RELEASE =~ ^(app-of-apps|redis-2)$ ]]; then | |
| echo "skipping - $RELEASE_FILE - [$ENV] [$RELEASE]" | |
| continue | |
| fi | |
| echo "checking $RELEASE_FILE - [$ENV] [$RELEASE]" | |
| ./bin/generate-values "${ENV}" "${RELEASE}" "${TMP_VALUES}" | |
| diff "${TMP_VALUES}" "${RELEASE_FILE}" | |
| done | |
| done |