This commit is contained in:
@@ -10,11 +10,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
run: |
|
run: |
|
||||||
git clone https://git.plfai.cn/test/fastapi-demo.git .
|
git clone https://git.plfai.cn/test/fastapi-demo.git /tmp/repo
|
||||||
|
cd /tmp/repo
|
||||||
git checkout ${GITHUB_SHA}
|
git checkout ${GITHUB_SHA}
|
||||||
|
|
||||||
- name: Docker Build
|
- name: Docker Build
|
||||||
run: |
|
run: |
|
||||||
|
cd /tmp/repo
|
||||||
docker build --network host \
|
docker build --network host \
|
||||||
-t registry.plfai.cn/fastapi-demo:${GITHUB_SHA:0:7} \
|
-t registry.plfai.cn/fastapi-demo:${GITHUB_SHA:0:7} \
|
||||||
-t registry.plfai.cn/fastapi-demo:latest \
|
-t registry.plfai.cn/fastapi-demo:latest \
|
||||||
|
|||||||
Reference in New Issue
Block a user