diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index 1dd7620..6c465a7 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -18,19 +18,11 @@ permissions: jobs: build-image: uses: ./.github/workflows/image-build-push.yaml - with: - directory: emptyDirClone secrets: inherit e2e-tests: runs-on: ubuntu-latest needs: build-image steps: - - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - run: | - echo "$GITHUB_CONTEXT" - name: Checkout uses: actions/checkout@v4 @@ -38,6 +30,8 @@ jobs: name: Run tests working-directory: ./emptyDirClone run: | + echo "Using tag: ${{ needs.build-image.outputs.tag }}" + sed -i "s/emptydirclone:.*/emptydirclone:${{ needs.build-image.outputs.tag }}/" deploy/daemonset.yaml make e2e E2E_TEST_ARGS="--fail-fast --v 6" - name: Upload logs diff --git a/.github/workflows/image-build-push.yaml b/.github/workflows/image-build-push.yaml index e73b556..6558e50 100644 --- a/.github/workflows/image-build-push.yaml +++ b/.github/workflows/image-build-push.yaml @@ -2,10 +2,6 @@ name: image-build-push on: workflow_call: - inputs: - directory: - required: true - type: string outputs: tag: description: "Container image tag" @@ -53,7 +49,7 @@ jobs: name: Build and push uses: docker/build-push-action@v5 with: - context: "{{defaultContext}}:${{ inputs.directory }}" + context: "{{defaultContext}}:emptyDirClone" platforms: linux/amd64,linux/arm64 push: true build-args: