Skip to content

Commit

Permalink
activate paths filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-WorkGH committed Oct 3, 2024
1 parent aefb43f commit 693dd7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
tags:
- 'v[0-9]+'
pull_request:
#paths:
# - k8s/*
paths:
- k8s/**

jobs:
verify_k8s:
Expand All @@ -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
Expand Down

0 comments on commit 693dd7a

Please sign in to comment.