From 23618e57ff05f903f7cc5d17b7ac1a8f931afc1d Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Mon, 16 Sep 2024 10:21:15 +0200 Subject: [PATCH 1/2] moved build jobs to correct dir --- .github/{ => workflows}/pull-build-image.yaml | 0 .github/{ => workflows}/push-build-image.yaml | 0 .github/{ => workflows}/tag-build-image.yaml | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/pull-build-image.yaml (100%) rename .github/{ => workflows}/push-build-image.yaml (100%) rename .github/{ => workflows}/tag-build-image.yaml (100%) diff --git a/.github/pull-build-image.yaml b/.github/workflows/pull-build-image.yaml similarity index 100% rename from .github/pull-build-image.yaml rename to .github/workflows/pull-build-image.yaml diff --git a/.github/push-build-image.yaml b/.github/workflows/push-build-image.yaml similarity index 100% rename from .github/push-build-image.yaml rename to .github/workflows/push-build-image.yaml diff --git a/.github/tag-build-image.yaml b/.github/workflows/tag-build-image.yaml similarity index 100% rename from .github/tag-build-image.yaml rename to .github/workflows/tag-build-image.yaml From eb4f936d9e24f37eee76b82bb08bd811a5ffdbef Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Mon, 16 Sep 2024 10:28:32 +0200 Subject: [PATCH 2/2] removed test job in build image --- .github/workflows/pull-build-image.yaml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/pull-build-image.yaml b/.github/workflows/pull-build-image.yaml index ceaf2c0..1356e19 100644 --- a/.github/workflows/pull-build-image.yaml +++ b/.github/workflows/pull-build-image.yaml @@ -16,20 +16,3 @@ jobs: dockerfile: Dockerfile context: . export-tags: true - test-image: - runs-on: ubuntu-latest - needs: build - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install jq - run: sudo apt-get install jq - - - name: Extract image name from JSON - id: extract-image - run: | - echo "IMAGE_NAME=$(echo '${{ needs.build.outputs.images }}' | jq -r '.[0]')" >> $GITHUB_ENV - - - name: Test image - run: ./scripts/shell/run-and-check-container.sh "$IMAGE_NAME" PR-${{ github.event.number }}-container