From c0f3afce9012d0f6b769701f2de933b77afdf94a Mon Sep 17 00:00:00 2001 From: Hashfyre Date: Mon, 15 Jan 2024 12:05:31 +0530 Subject: [PATCH] added codebundle specific curl_url,test_code_bundle_path --- .github/workflows/build.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c732d80..40e97f2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,13 +11,13 @@ permissions: id-token: "write" packages: "write" -env: - TEST_CODEBUNDLE_PATH: /app/codecollection/codebundles/hello_world/sli.robot - CURL_URL: http://localhost:3000/hello_world/sli-log.html + jobs: build-and-push-ghcr: runs-on: ubuntu-latest + env: + codebundle: hello_world steps: - name: Checkout uses: actions/checkout@v2 @@ -30,8 +30,8 @@ jobs: - name: Smoke Test Build run: | docker run -d -p 3000:3000 --name mycodecollection ghcr.io/${{ github.repository }}:latest - docker exec mycodecollection bash -c "ro ${{ env.TEST_CODEBUNDLE_PATH }} && ls -R /robot_logs" - curl --fail-with-body ${{ env.CURL_URL }} + docker exec mycodecollection bash -c "ro /app/codecollection/codebundles/${{ env.codebundle }}/sli.robot && ls -R /robot_logs" + curl --fail-with-body http://localhost:3000/${{ env.codebundle }}/sli-log.html - name: Push run: | echo "${{ secrets.GITHUB_TOKEN }}" | docker login --username ${{ github.actor }} --password-stdin ghcr.io