diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index c4b735ee..1599cd9b 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -43,6 +43,56 @@ jobs: with: submodules: recursive + - name: Load images from GitHub Artifacts + if: github.repository != 'otterize/network-mapper' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/network-mapper') + uses: actions/download-artifact@v3 + with: + name: ${{ env.REGISTRY }}_${{ github.actor }}_mapper_${{ github.sha }} + + - name: Load Docker image + if: github.repository != 'otterize/network-mapper' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/network-mapper') + run: |- + docker image load -i ${{ env.REGISTRY }}_${{ github.actor }}_mapper_${{ github.sha }} + minikube image load ${{ env.REGISTRY }}/${{ github.actor }}/mapper:${{ github.sha }} + + - name: Load images from GitHub Artifacts + if: github.repository != 'otterize/network-mapper' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/network-mapper') + uses: actions/download-artifact@v3 + with: + name: ${{ env.REGISTRY }}_${{ github.actor }}_sniffer_${{ github.sha }} + + - name: Load Docker image + if: github.repository != 'otterize/network-mapper' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/network-mapper') + run: |- + docker image load -i ${{ env.REGISTRY }}_${{ github.actor }}_sniffer_${{ github.sha }} + minikube image load ${{ env.REGISTRY }}/${{ github.actor }}/sniffer:${{ github.sha }} + + - name: Load images from GitHub Artifacts + if: github.repository != 'otterize/network-mapper' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/network-mapper') + uses: actions/download-artifact@v3 + with: + name: ${{ env.REGISTRY }}_${{ github.actor }}_kafka-watcher_${{ github.sha }} + + - name: Load Docker image + if: github.repository != 'otterize/network-mapper' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/network-mapper') + run: |- + docker image load -i ${{ env.REGISTRY }}_${{ github.actor }}_kafka-watcher_${{ github.sha }} + minikube image load ${{ env.REGISTRY }}/${{ github.actor }}/kafka-watcher:${{ github.sha }} + + - name: Load images from GitHub Artifacts + if: github.repository != 'otterize/network-mapper' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/network-mapper') + uses: actions/download-artifact@v3 + with: + name: ${{ env.REGISTRY }}_${{ github.actor }}_istio-watcher_${{ github.sha }} + + - name: Load Docker image + if: github.repository != 'otterize/network-mapper' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != 'otterize/network-mapper') + run: |- + docker image load -i ${{ env.REGISTRY }}_${{ github.actor }}_istio-watcher_${{ github.sha }} + minikube image load ${{ env.REGISTRY }}/${{ github.actor }}/istio-watcher:${{ github.sha }} + + +# ${{ env.REGISTRY }}_${{ github.actor }}_${{ matrix.service }}_${{ github.sha }} - name: Login to GCR if: (github.event_name == 'push' && github.repository == 'otterize/network-mapper') || github.event.pull_request.head.repo.full_name == 'otterize/network-mapper' uses: docker/login-action@v2 @@ -68,11 +118,6 @@ jobs: - name: Deploy Network Mapper run: |- - docker pull ${{ env.REGISTRY }}/${{ inputs.mapper-image }}:${{ inputs.mapper-tag }} - minikube image load ${{ env.REGISTRY }}/${{ inputs.mapper-image }}:${{ inputs.mapper-tag }} - docker pull ${{ env.REGISTRY }}/${{ inputs.sniffer-image }}:${{ inputs.sniffer-tag }} - minikube image load ${{ env.REGISTRY }}/${{ inputs.sniffer-image }}:${{ inputs.sniffer-tag }} - MAPPER_FLAGS="--set-string networkMapper.mapper.repository=${{ env.REGISTRY }} --set-string networkMapper.mapper.image=${{ inputs.mapper-image }} --set-string networkMapper.mapper.tag=${{ inputs.mapper-tag }} --set-string networkMapper.mapper.pullPolicy=Never" SNIFFER_FLAGS="--set-string networkMapper.sniffer.repository=${{ env.REGISTRY }} --set-string networkMapper.sniffer.image=${{ inputs.sniffer-image }} --set-string networkMapper.sniffer.tag=${{ inputs.sniffer-tag }} --set-string networkMapper.sniffer.pullPolicy=Never" TELEMETRY_FLAG="--set global.telemetry.enabled=false"