Skip to content

Commit

Permalink
chore(ci): fix e2e's artifact name (#6768)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalek authored Dec 4, 2024
1 parent e513e04 commit 568a3f4
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/_e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,16 @@ jobs:
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }}
GOTESTSUM_JUNITFILE: ${{ env.GOTESTSUM_JUNITFILE }}

- run: |
- name: Set KONG_IMAGE_ARTIFACT
if: ${{ always() }}
run: |
if [ "${{ steps.split.outputs.kong-image }}" != "" ]; then
echo "KONG_IMAGE_ARTIFACT=kongimage-$( echo ${{ steps.split.outputs.kong-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kong-tag }}" >> $GITHUB_ENV
export kong_image=$( echo ${{ steps.split.outputs.kong-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kong-tag }}
fi
if [ "${{ steps.split.outputs.kic-image }}" != "" ]; then
export kic_image=$( echo ${{ steps.split.outputs.kic-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kic-tag }}
fi
echo "KONG_IMAGE_ARTIFACT=kong_image-${kong_image}-kic_image-${kic_image}" >> $GITHUB_ENV
- name: upload diagnostics
if: ${{ always() }}
Expand Down Expand Up @@ -291,10 +297,16 @@ jobs:
GOOGLE_LOCATION: ${{ secrets.GOOGLE_LOCATION }}
TEST_GKE_CLUSTER_RELEASE_CHANNEL: "rapid"

- run: |
- name: Set KONG_IMAGE_ARTIFACT
if: ${{ always() }}
run: |
if [ "${{ steps.split.outputs.kong-image }}" != "" ]; then
echo "KONG_IMAGE_ARTIFACT=kongimage-$( echo ${{ steps.split.outputs.kong-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kong-tag }}" >> $GITHUB_ENV
export kong_image=$( echo ${{ steps.split.outputs.kong-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kong-tag }}
fi
if [ "${{ steps.split.outputs.kic-image }}" != "" ]; then
export kic_image=$( echo ${{ steps.split.outputs.kic-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kic-tag }}
fi
echo "KONG_IMAGE_ARTIFACT=kong_image-${kong_image}-kic_image-${kic_image}" >> $GITHUB_ENV
- name: upload diagnostics
if: ${{ always() }}
Expand Down Expand Up @@ -394,10 +406,16 @@ jobs:
# multiple kind clusters within a single job, so only 1 is allowed at a time.
GOTESTSUM_JUNITFILE: ${{ env.GOTESTSUM_JUNITFILE }}

- run: |
- name: Set KONG_IMAGE_ARTIFACT
if: ${{ always() }}
run: |
if [ "${{ steps.split.outputs.kong-image }}" != "" ]; then
echo "KONG_IMAGE_ARTIFACT=kongimage-$( echo ${{ steps.split.outputs.kong-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kong-tag }}" >> $GITHUB_ENV
export kong_image=$( echo ${{ steps.split.outputs.kong-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kong-tag }}
fi
if [ "${{ steps.split.outputs.kic-image }}" != "" ]; then
export kic_image=$( echo ${{ steps.split.outputs.kic-image }} | awk '{gsub(/[:.\/]/, "-")};$1' )-${{ steps.split.outputs.kic-tag }}
fi
echo "KONG_IMAGE_ARTIFACT=kong_image-${kong_image}-kic_image-${kic_image}" >> $GITHUB_ENV
- name: upload diagnostics
if: ${{ always() }}
Expand Down

0 comments on commit 568a3f4

Please sign in to comment.