Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Jul 31, 2024
1 parent 1ca1b3f commit 1d51aba
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/check-generated-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ name: Check values files
jobs:
diff:
runs-on: ubuntu-latest
env:
TMP_DIR: "/tmp/shared"
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Create directories
run: |
mkdir -p ~/.local/bin
mkdir -p /tmp/shared
chmod 777 /tmp/shared
mkdir -p "${TMP_DIR}"
chmod 777 "${TMP_DIR}"
- name: Create helmfile docker shim
run: |
echo 'docker run --rm -v "/tmp:/tmp" -v "${PWD}:/workdir" --workdir /workdir \
Expand All @@ -26,10 +28,13 @@ jobs:
run: >
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=/shared/tmp_"${ENV}.${RELEASE}".yml
TMP_VALUES="${TMP_DIR}"/tmp_"${ENV}.${RELEASE}".yml
echo "checking $RELEASE_FILE - [$ENV] [$RELEASE]"
./bin/generate-values "${ENV}" "${RELEASE}" "${TMP_VALUES}"
diff "${TMP_VALUES}" "${RELEASE_FILE}"
done
Expand Down

0 comments on commit 1d51aba

Please sign in to comment.