v0.4.3-20240618 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CLI prod release | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
architecture: "x64" | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PWD }} | |
- name: Docker Build | |
run: docker build -f docker/Dockerfile -t zilliz/milvus_cli:${GITHUB_REF#refs/tags/} --build-arg VERSION=${GITHUB_REF#refs/tags/} . | |
- name: Docker tag | |
run: docker tag zilliz/milvus_cli:${GITHUB_REF#refs/tags/} zilliz/milvus_cli:latest | |
- name: Docker Push lastest | |
run: docker push zilliz/milvus_cli |