Skip to content

Commit

Permalink
Run the compose test only on the minimal images
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrod3 committed Dec 9, 2024
1 parent 2c282ec commit 5ca588e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/actions/test_image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,8 @@ runs:
shell: bash

- name: Test Compose up
if: inputs.image_name == 'pulp-minimal' || inputs.image_name == 'galaxy-minimal'
run: |
if [[ "${{ inputs.image_name }}" == "pulp" || "${{ inputs.image_name }}" == "galaxy" ]]; then
FILE="compose.folders.yml"
# We'll pull the web image from a registry since we didn't build it.
if [ "${{ inputs.image_variant }}" == "nightly" ]; then
WEB_TAG="nightly"
else
WEB_TAG="${{ inputs.app_branch }}"
fi
else
FILE="compose.yml"
WEB_TAG="${{ inputs.app_arch_tag }}"
fi
base_image=$(echo ${{ inputs.image_name }} | cut -d '-' -f1)
images/compose/test.sh "${{ inputs.image_name }}:${{ inputs.app_arch_tag }}" "${base_image}-web:${WEB_TAG}" $FILE
images/compose/test.sh "${{ inputs.image_name }}:${{ inputs.app_arch_tag }}" "${base_image}-web:${{ inputs.app_arch_tag }}" "compose.yml"
shell: bash

0 comments on commit 5ca588e

Please sign in to comment.