Skip to content

Commit

Permalink
Merge branch 'feat/add-new-e2e' into test-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanxin committed Sep 19, 2024
2 parents d2394f0 + 55eaee5 commit e5f089d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,33 @@ jobs:
compute-tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.tag }}
tags: ${{ steps.get_tag.outputs.tags }}
steps:
- name: Get the latest tag
id: get_tag
run: |
if [[ "${{ inputs.tag }}" != "" ]]; then
echo "tag=${{ inputs.tag }}" >> $GITHUB_OUTPUT
echo "tags=${{ inputs.tag }}" >> $GITHUB_OUTPUT
elif [[ "${{ github.event_name }}" == "push" ]]; then
echo "tag=latest" >> $GITHUB_OUTPUT
echo "tags=latest" >> $GITHUB_OUTPUT
else
echo "tag=PR-${{ github.event.pull_request.number }}\n${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
{
echo 'tags<<TAGS'
echo 'PR-${{ github.event.pull_request.number }}'
echo '${{ github.event.pull_request.head.sha }}'
echo 'TAGS'
} >> "$GITHUB_OUTPUT"
fi
- name: Display output
run: echo ${{ steps.get_tag.outputs.tag }}
run: echo ${{ steps.get_tag.outputs.tags }}
build-image:
needs: compute-tag
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: lifecycle-manager
dockerfile: Dockerfile
context: .
tags: ${{ needs.compute-tag.outputs.tag }}
tags: ${{ needs.compute-tag.outputs.tags }}
test-image:
runs-on: ubuntu-latest
needs: build-image
Expand Down

0 comments on commit e5f089d

Please sign in to comment.