Skip to content

Commit

Permalink
Fixed Bug
Browse files Browse the repository at this point in the history
Signed-off-by: Mriyam Tamuli <[email protected]>
  • Loading branch information
mbtamuli committed Jan 18, 2024
1 parent e276d92 commit 28606ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,20 @@ 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
-
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
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/image-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: image-build-push

on:
workflow_call:
inputs:
directory:
required: true
type: string
outputs:
tag:
description: "Container image tag"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 28606ec

Please sign in to comment.