Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn-hurley committed Jul 29, 2024
1 parent ed23116 commit 405b48c
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/demo-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Demo Testing
on: ["push", "pull_request"]

env:
IMG_JAVA_PROVIDER: ttl.sh/konveyor-java-external-provider:2hr
IMG_JAVA_PROVIDER: ttl.sh/konveyor-java-external-provider-{{ env.GITHUB_SHA }}:2hr
IMG_DOTNET_PROVIDER: ttl.sh/konveyor-dotnet-external-provider:2h
IMG_GENERIC_PROVIDER: ttl.sh/konveyor-generic-external-provider:2h

Expand All @@ -18,6 +18,10 @@ jobs:
env:
PULL_REQUEST_BODY: ${{ github.event.pull_request.body }}
run: |
echo "IMG_JAVA_PROVIDER-ttl.sh/konveyor-java-external-provider-${GITHUB_SHA}:2h" >>$GITHUB_OUTPUT
echo "IMG_DOTNET_PROVIDER-ttl.sh/konveyor-dotnet-external-provider-${GITHUB_SHA}:2h" >>$GITHUB_OUTPUT
echo "IMG_GENERIC_PROVIDER-ttl.sh/konveyor-generic-external-provider-${GITHUB_SHA}:2h" >>$GITHUB_OUTPUT
echo "BUILD_BUNDLE=false" >> $GITHUB_OUTPUT
# if this is a PR, we should use the base branch
# else, use the branch on which this is running
Expand Down Expand Up @@ -68,19 +72,19 @@ jobs:
- name: build images
run: |
make \
IMG_JAVA_PROVIDER=$IMG_JAVA_PROVIDER \
IMG_DOTNET_PROVIDER=$IMG_DOTNET_PROVIDER \
IMG_GENERIC_PROVIDER=$IMG_GENERIC_PROVIDER \
IMG_JAVA_PROVIDER=${{steps.extract-info.outputs.IMG_JAVA_PROVIDER }}\
IMG_DOTNET_PROVIDER=${{steps.extract-info.outputs.IMG_DOTNET_PROVIDER }}\
IMG_GENERIC_PROVIDER=${{steps.extract-info.outputs.IMG_GENERIC_PROVIDER }}\
build-external
podman build -t quay.io/konveyor/analyzer-lsp:latest -f Dockerfile .
# run the demo in a podman pod
- name: run demo image
run : |
make \
IMG_JAVA_PROVIDER=$IMG_JAVA_PROVIDER \
IMG_DOTNET_PROVIDER=$IMG_DOTNET_PROVIDER \
IMG_GENERIC_PROVIDER=$IMG_GENERIC_PROVIDER \
IMG_JAVA_PROVIDER=${{steps.extract-info.outputs.IMG_JAVA_PROVIDER }}\
IMG_DOTNET_PROVIDER=${{steps.extract-info.outputs.IMG_DOTNET_PROVIDER }}\
IMG_GENERIC_PROVIDER=${{steps.extract-info.outputs.IMG_GENERIC_PROVIDER }}\
run-external-providers-pod
podman build -f demo-local.Dockerfile -t localhost/testing:latest
make run-demo-image
Expand All @@ -107,25 +111,25 @@ jobs:
- name: Build addon and push images
working-directory: tackle2-addon-analyzer
run: |
IMG=ttl.sh/konveyor-tackle2-addon-analyzer:2h make image-podman
podman push ttl.sh/konveyor-tackle2-addon-analyzer:2h
podman push $IMG_JAVA_PROVIDER
podman push $IMG_DOTNET_PROVIDER
podman push $IMG_GENERIC_PROVIDER
IMG=ttl.sh/konveyor-tackle2-addon-analyzer-${{ env.GITHUB_SHA }}:2h make image-podman
podman push ttl.sh/konveyor-tackle2-addon-analyzer-${{ env.GITHUB_SHA }}:2h
podman push ${{steps.extract-info.outputs.IMG_JAVA_PROVIDER }}\
podman push ${{steps.extract-info.outputs.IMG_DOTNET_PROVIDER }}\
podman push ${{steps.extract-info.outputs.IMG_GENERIC_PROVIDER }}\
- name: Make bundle image
uses: konveyor/operator/.github/actions/make-bundle@main
with:
operator_bundle: ttl.sh/konveyor-operator-bundle-shawn-test:2h
addon_analyzer: ttl.sh/konveyor-tackle2-addon-analyzer:2h
provider_generic: ${{ env.IMG_GENERIC_PROVIDER }}
provider_java: ${{ env.IMG_JAVA_PROVIDER}}
operator_bundle: ttl.sh/konveyor-operator-bundle-${{ env.GITHUB_SHA }}:2h
addon_analyzer: ttl.sh/konveyor-tackle2-addon-analyzer-${{ env.GITHUB_SHA }}:2h
provider_generic: ${{steps.extract-info.outputs.IMG_GENERIC_PROVIDER }}
provider_java: ${{steps.extract-info.outputs.IMG_JAVA_PROVIDER }}
- name: push bundle image
run: |
podman push ttl.sh/konveyor-operator-bundle-shawn-test:2h
docker push ttl.sh/konveyor-operator-bundle-${{ env.GITHUB_SHA }}:2h
e2e:
needs: test
uses: konveyor/ci/.github/workflows/global-ci-bundle.yml@main
with:
operator_bundle: ttl.sh/konveyor-operator-bundle-shawn-test:2h
api_tests_ref: "${{ needs.test.outputs.api_tests_ref }}"
operator_bundle: ttl.sh/konveyor-operator-bundle-${{ env.GITHUB_SHA }}:2h
api_tests_ref: refs/pull/165/merge

0 comments on commit 405b48c

Please sign in to comment.