Skip to content

Commit

Permalink
Fix apache#1333: move hook to correct run and add it to knative
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Mar 19, 2020
1 parent b7671d6 commit eb34980
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/knative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ jobs:
env:
KAMEL_INSTALL_BUILD_PUBLISH_STRATEGY: ${{ matrix.publisher }}
run: |
# Set the test to periodically cleanup the docker system
export KAMEL_TEST_CLEANUP="docker system prune -f"
# Compute registry parameters
CAMEL_K_REGISTRY=$(docker inspect --format '{{.NetworkSettings.IPAddress }}' "kind-registry")
echo "Using registry ${CAMEL_K_REGISTRY}:5000"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ jobs:
sudo chmod a+rw $REGISTRY_VOLUME
docker run -d -p "${REGISTRY_PORT}:5000" --restart=always -v $REGISTRY_VOLUME:/var/lib/registry --name "${REGISTRY_CONTAINER_NAME}" registry:2
export KAMEL_TEST_CLEANUP="docker system prune -f"
REGISTRY_IP=$(docker inspect --format '{{.NetworkSettings.IPAddress }}' "${REGISTRY_CONTAINER_NAME}")
cat <<EOF | kind create cluster --config=-
kind: Cluster
Expand Down Expand Up @@ -93,6 +91,9 @@ jobs:
env:
KAMEL_INSTALL_BUILD_PUBLISH_STRATEGY: ${{ matrix.publisher }}
run: |
# Set the test to periodically cleanup the docker system
export KAMEL_TEST_CLEANUP="docker system prune -f"
# Compute registry parameters
CAMEL_K_REGISTRY=$(docker inspect --format '{{.NetworkSettings.IPAddress }}' "kind-registry")
echo "Using registry ${CAMEL_K_REGISTRY}:5000"
Expand Down

0 comments on commit eb34980

Please sign in to comment.