mirror of https://github.com/milvus-io/milvus.git
Auto update builder and pytest image tag (#6446)
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>pull/6447/head
parent
594b89067f
commit
239e629e83
|
@ -51,3 +51,20 @@ jobs:
|
|||
-p ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
DATE_VERSION=latest docker-compose push builder
|
||||
DATE_VERSION=${{ steps.extracter.outputs.version }} docker-compose push builder
|
||||
- name: Update Builder Image Changes
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
continue-on-error: true
|
||||
shell: bash
|
||||
run: |
|
||||
sed -i "s#DATE_VERSION=.*#DATE_VERSION=${{ steps.extracter.outputs.version }}#g" .env
|
||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add .env
|
||||
git commit -m "Update Builder Image Changes"
|
||||
- name: Push Builder Image Changes
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
continue-on-error: true
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
|
|
|
@ -49,3 +49,21 @@ jobs:
|
|||
IMAGE_TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }} docker-compose push pytest
|
||||
IMAGE_TAG=latest docker-compose push pytest
|
||||
echo "Push pytest image Succeeded"
|
||||
- name: Update Pytest Image Changes
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
continue-on-error: true
|
||||
shell: bash
|
||||
working-directory: tests/docker
|
||||
run: |
|
||||
sed -i "s#IMAGE_TAG=.*#IMAGE_TAG=${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }}#g" .env
|
||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add .env
|
||||
git commit -m "Update Pytest Image Changes"
|
||||
- name: Push Pytest Image Changes
|
||||
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
|
||||
continue-on-error: true
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
|
|
Loading…
Reference in New Issue