-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/cell-containerization-ExtractorH…
…andler' into cell-containerization-ExtractorHandler
- Loading branch information
Showing
1 changed file
with
8 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|