Fix archive builder image for publish workflow bug

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/4973/head^2
quicksilver 2020-11-02 18:49:11 +08:00 committed by yefu.chen
parent 8020dc2256
commit f75dc8cf82
2 changed files with 6 additions and 3 deletions

View File

@ -34,10 +34,13 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check # Default is github-pr-check
hadolint_ignore: DL3008
- name: Get version from system time after release step
id: extracter
run: echo "::set-output name=version::$(date +%Y%m%d-%H%M%S)"
- name: Docker Build
shell: bash
run: |
SHOW_DATE=`date +%Y%m%d-%H%M%S` docker-compose build ubuntu
SHOW_DATE=${{ steps.extracter.outputs.version }} docker-compose build ubuntu
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'zilliztech/milvus-distributed'
continue-on-error: true
@ -45,4 +48,4 @@ jobs:
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
SHOW_DATE=`date +%Y%m%d-%H%M%S` docker-compose push ubuntu
SHOW_DATE=${{ steps.extracter.outputs.version }} docker-compose push ubuntu

View File

@ -14,7 +14,7 @@ services:
context: .
dockerfile: build/docker/env/cpu/ubuntu${UBUNTU}/Dockerfile
cache_from:
- ${REPO}:${ARCH}-ubuntu${UBUNTU}
- ${REPO}:${ARCH}-ubuntu${UBUNTU}-${SHOW_DATE}
shm_size: 2G
environment:
<<: *ccache