Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/cell-containerization-ExtractorH…
Browse files Browse the repository at this point in the history
…andler' into cell-containerization-ExtractorHandler
  • Loading branch information
AndyBRoswell committed Aug 28, 2024
2 parents 16cfaea + 7a6faf3 commit a1bfea5
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,46 +35,39 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: envvar chk
run: python -c "import os; print(os.getenv('CELL_GITHUB'))"
- name: chkenv
run: python -c "import os; print(os.getenv('CELL_GITHUB')); print(os.getenv('BASE_PATH'))"

- name: Build docker
run: |
echo '-> envvar:'
env
cd $DOCKER_FOLDER && docker build . --file Dockerfile -t $TAG --build-arg "NODE_ENV=${{ inputs.environment }}:CELL_GITHUB=${{ env.CELL_GITHUB }}"
cd $DOCKER_FOLDER && docker build . --file Dockerfile -t $TAG --build-arg "NODE_ENV=${{ inputs.environment }}"
- name: Run docker compose
# uses: isbang/[email protected]
uses: hoverkraft-tech/[email protected]
with:
compose-file: "${{ inputs.docker_folder }}/docker-compose.yaml"
env:
CELL_GITHUB: "https://github.com/QCDIS/NaaVRE-cells-test-3"

- name: envchk
run: cd $DOCKER_FOLDER && docker-compose logs envchk
- name: chkenv2
run: python -c "import os; print(os.getenv('CELL_GITHUB')); print(os.getenv('BASE_PATH'))"

- name: Wait for healthy app
uses: raschmitt/wait-for-healthy-container/@v1
with:
container-name: app
timeout: 120

- name: Print all environment variables
run: |
echo 'envvar:'
env
- name: chkenv3
if: always()
run: python -c "import os; print(os.getenv('CELL_GITHUB')); print(os.getenv('BASE_PATH'))"

- name: Capture Docker Logs
if: failure()
run: |
echo '-> envvar:'
env
echo '-> Capturing Docker logs ...'
docker logs app
echo '-> envvar:'
env
- name: Login to github Registry
if: ${{ inputs.push }}
Expand Down

0 comments on commit a1bfea5

Please sign in to comment.