Skip to content

Commit

Permalink
[Workflow] Delete Useless Docker “yes” (#162)
Browse files Browse the repository at this point in the history
* single test

* single test

* single test

* single test

* fix hang error

* delete useless yes

* delete useless yes

* delete useless yes

* delete useless yes

* delete useless yes

* test yes

* test yes

* use -f replace yes
  • Loading branch information
yutianchen666 authored Mar 29, 2024
1 parent 98b8215 commit 6f47e75
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/workflow_finetune.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:

- name: Build Docker Image
run: |
docker build ./ --build-arg CACHEBUST=1 --build-arg http_proxy=${{ inputs.http_proxy }} --build-arg https_proxy=${{ inputs.https_proxy }} -f dev/docker/Dockerfile.cpu_and_deepspeed -t finetune:latest && yes | docker container prune && yes
docker build ./ --build-arg CACHEBUST=1 --build-arg http_proxy=${{ inputs.http_proxy }} --build-arg https_proxy=${{ inputs.https_proxy }} -f dev/docker/Dockerfile.cpu_and_deepspeed -t finetune:latest
docker container prune -f
docker image prune -f
- name: Start Docker Container
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/workflow_inference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ jobs:
DF_SUFFIX=".cpu_and_deepspeed"
fi
TARGET=${{steps.target.outputs.target}}
docker build ./ --build-arg CACHEBUST=1 --build-arg http_proxy=${{ inputs.http_proxy }} --build-arg https_proxy=${{ inputs.https_proxy }} -f dev/docker/Dockerfile${DF_SUFFIX} -t ${TARGET}:latest && yes | docker container prune && yes
docker build ./ --build-arg CACHEBUST=1 --build-arg http_proxy=${{ inputs.http_proxy }} --build-arg https_proxy=${{ inputs.https_proxy }} -f dev/docker/Dockerfile${DF_SUFFIX} -t ${TARGET}:latest
docker container prune -f
docker image prune -f
- name: Start Docker Container
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/workflow_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
python-version: ["3.9", "3.10", "3.11"]

runs-on: ubuntu-latest

env:
SHELL: bash -eo pipefail

defaults:
run:
shell: bash
Expand Down Expand Up @@ -46,6 +50,10 @@ jobs:
python-version: ["3.9", "3.10", "3.11"]

runs-on: ubuntu-latest

env:
SHELL: bash -eo pipefail

defaults:
run:
shell: bash
Expand Down Expand Up @@ -146,7 +154,8 @@ jobs:
run: |
DF_SUFFIX=".tests_cpu_and_deepspeed"
TARGET=${{steps.target.outputs.target}}
docker build ./ --build-arg CACHEBUST=1 --build-arg python_v=${{matrix.python-version}} -f dev/docker/Dockerfile${DF_SUFFIX} -t ${TARGET}:latest && yes | docker container prune && yes
docker build ./ --build-arg CACHEBUST=1 --build-arg python_v=${{matrix.python-version}} -f dev/docker/Dockerfile${DF_SUFFIX} -t ${TARGET}:latest
docker container prune -f
docker image prune -f
- name: Start Docker Container
Expand Down

0 comments on commit 6f47e75

Please sign in to comment.