diff --git a/.github/actions/test_image/action.yml b/.github/actions/test_image/action.yml index 90086087..6d133510 100644 --- a/.github/actions/test_image/action.yml +++ b/.github/actions/test_image/action.yml @@ -5,10 +5,6 @@ inputs: image_name: description: 'Name of the image to be tested' required: true - image_variant: - description: 'Stable or nightly build' - required: true - default: 'stable' app_branch: description: 'The branch the app was built on' required: true @@ -49,13 +45,8 @@ runs: 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 - # This will be the branch we are running on, either latest or version branch - WEB_TAG="${{ github.base_ref || github.ref_name }}" - fi + # This will be the branch we are running on, either latest or version branch + WEB_TAG="${{ github.base_ref || github.ref_name }}" else FILE="compose.yml" WEB_TAG="ci-amd64" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7daefa98..ec932948 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,20 +48,8 @@ jobs: base-images: runs-on: ubuntu-latest outputs: - image_variants: "${{ steps.image_variants.outputs.image_variants }}" base_cache_key: "${{ steps.build_base_images.outputs.base_cache_key }}" steps: - # We do not want to build nightly images unless it's a PR to the latest branch, - # or a branch/dispatch build on the latest branch. - - name: Set the list of image_variants for later jobs - id: image_variants - run: | - if [ "${{ github.base_ref }}" == "latest" ] || [ "${{ github.ref_name }}" == "latest" ]; then - echo "image_variants=[\"nightly\",\"stable\"]" >> "$GITHUB_OUTPUT" - else - echo "image_variants=[\"stable\"]" >> "$GITHUB_OUTPUT" - fi - - uses: actions/checkout@v4 - name: Build base images @@ -79,7 +67,6 @@ jobs: strategy: fail-fast: false matrix: - image_variant: ${{ fromJSON(needs.base-images.outputs.image_variants) }} image_name: - pulp-minimal - pulp @@ -93,14 +80,13 @@ jobs: uses: "./.github/actions/build_image" with: image_name: ${{ matrix.image_name }} - image_variant: ${{ matrix.image_variant }} + image_variant: "stable" image_cache_key: ${{ needs.base-images.outputs.base_cache_key }} - name: Test App Image uses: "./.github/actions/test_image" with: image_name: ${{ matrix.image_name }} - image_variant: ${{ matrix.image_variant }} app_branch: ${{ steps.build_image.outputs.app_branch }} - name: Logs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7e2223b..3858bb6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -172,10 +172,10 @@ jobs: image_cache_key: ${{ needs.base-images.outputs.base_cache_key }} - name: Test App Image + if: matrix.image_variant != 'nightly' uses: "./.github/actions/test_image" with: image_name: ${{ matrix.image_name }} - image_variant: ${{ matrix.image_variant }} app_branch: ${{ steps.build_image.outputs.app_branch }} - name: Set tags