Skip to content

Commit

Permalink
Fixed the docker yml
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe authored Jul 21, 2023
1 parent 0080e31 commit f1eacd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u dafoam --password-stdin
docker pull dafoam/opt-packages:latest
docker run -i -d -u dafoamuser --name build_latest dafoam/opt-packages:latest /bin/bash
docker exec -i -e DAFOAM_NO_WARNINGS=1 build_latest /bin/bash -c ". ${{env.DOCKER_ENV_FILE}} && cd /home/dafoamuser/dafoam/repos && git clone https://github.com/mdolab/dafoam && cd dafoam && ./Allmake && . ${{env.DOCKER_OF_ADR_BASHRC}} && ./Allclean && ./Allmake && . ${{env.DOCKER_OF_ADF_BASHRC}} && ./Allclean && ./Allmake && pip install . && cd .. && rm -rf /home/dafoamuser/dafoam/repos/dafoam && rm ~/.bashrc_history && history -c"
docker exec -i -e DAFOAM_NO_WARNINGS=1 build_latest /bin/bash -c ". ${{env.DOCKER_ENV_FILE}} && cd /home/dafoamuser/dafoam/repos && git clone https://github.com/mdolab/dafoam && cd dafoam && ./Allmake && . ${{env.DOCKER_OF_ADR_BASHRC}} && ./Allclean && ./Allmake && . ${{env.DOCKER_OF_ADF_BASHRC}} && ./Allclean && ./Allmake && pip install . && cd .. && rm -rf /home/dafoamuser/dafoam/repos/dafoam"
docker export build_latest > build_latest.tar
docker rm -f $(docker ps -a -q)
docker rmi -f dafoam/opt-packages:latest
Expand Down

0 comments on commit f1eacd3

Please sign in to comment.