From 693dd7a4dc63d9da3ff0780798fcca000ad9d371 Mon Sep 17 00:00:00 2001 From: Tristan Chuine Date: Thu, 3 Oct 2024 02:38:46 +0200 Subject: [PATCH] activate paths filter --- .github/workflows/docker.yml | 11 ++++++++--- .github/workflows/k8s.yml | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c2e30659..bd006cbe 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,8 +7,9 @@ on: tags: - 'v[0-9]+' pull_request: - #paths: - # - docker-compose/* + paths: + - docker-compose/** + - k8s/resources/**/config/** env: GRIDSUITE_DATABASES: /tmp/gs_db @@ -27,12 +28,13 @@ jobs: sparse-checkout: | .github docker-compose + k8s #- name: Install buildx # uses: docker/setup-buildx-action@v3 # with: # version: v0.9.1 # Buildx version - name: mkdir - run: mkdir ./build + run: mkdir -v ./build - name: Debug version run: docker version --format '{{json .}}' | jq | tee ./build/docker_version.json - name: List Docker compose profiles @@ -56,6 +58,9 @@ jobs: - name: Build Docker compose for each profiles working-directory: docker-compose/explicit-profiles run: docker compose config --profiles | xargs -t -L 1 -I{} docker compose --profile {} config --output ../build/docker-compose.{}.yml + #- name: Verify Docker compose images + # working-directory: docker-compose/explicit-profiles + # run: docker compose --profile all config --resolve-image-digests --output ../build/docker-compose_digest.yml - name: Build old docker-compose dynamic-mapping working-directory: docker-compose/dynamic-mapping run: docker compose config --output ../build/dynamic-mapping.yml diff --git a/.github/workflows/k8s.yml b/.github/workflows/k8s.yml index 9e729d25..970f94f3 100644 --- a/.github/workflows/k8s.yml +++ b/.github/workflows/k8s.yml @@ -7,8 +7,8 @@ on: tags: - 'v[0-9]+' pull_request: - #paths: - # - k8s/* + paths: + - k8s/** jobs: verify_k8s: @@ -27,7 +27,7 @@ jobs: .github k8s - name: mkdir - run: mkdir ./build + run: mkdir -v ./build - name: Debug version run: kubectl version --client=true --output=json | tee ./build/kubectl_version.json - id: bake-local