Skip to content

Commit

Permalink
OPSEXP-2732 Add switch to disable docker-compose pull step in script (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius authored Jul 16, 2024
1 parent aa845bc commit 6314231
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/actions/dbp-charts/verify-compose/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
description: "full path to docker compose file to test"
required: false
default: "./docker-compose.yml"
compose_pull:
description: "run docker-compose pull before tests"
required: false
default: "true"
docker_username:
description: "username for Docker Hub"
required: false
Expand Down Expand Up @@ -43,3 +47,4 @@ runs:
shell: bash
env:
COMPOSE_FILE_PATH: ${{ inputs.compose_file_path }}
COMPOSE_PULL: ${{ inputs.compose_pull }}
4 changes: 3 additions & 1 deletion .github/actions/dbp-charts/verify-compose/docker_compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ docker-compose --version
docker-compose -f "${COMPOSE_FILE}" config
echo "Starting Alfresco in docker compose"
docker-compose ps
docker-compose -f "${COMPOSE_FILE}" pull --quiet
if [ "$COMPOSE_PULL" = "true" ]; then
docker-compose -f "${COMPOSE_FILE}" pull --quiet
fi
export COMPOSE_HTTP_TIMEOUT=120
docker-compose -f "${COMPOSE_FILE}" up -d --quiet-pull

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v5.33.0
v5.34.0

0 comments on commit 6314231

Please sign in to comment.