TerminationGracePeriodSeconds 시간이 너무 길어 pod가 오랜기간 terminate 되지 않는 문제가… #17
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: Build and Push Latest on Main | |
# This workflow is triggered on new pushed to the main branch. | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-builder: | |
name: Publish Builder | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu18.04] | |
env: | |
OS_NAME: ${{ matrix.os }} | |
REGISTRY_NAME: milvusdb/milvus-operator | |
IMAGE_TAG: "main-latest" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build Docker Image | |
shell: bash | |
run: | | |
docker build -t ${REGISTRY_NAME}:${IMAGE_TAG} . | |
- name: Push Docker Image | |
shell: bash | |
run: | | |
docker login -u ${{ secrets.MILVUSDB_DOCKER_USER }} \ | |
-p ${{ secrets.MILVUSDB_DOCKER_PWD }} | |
docker push ${REGISTRY_NAME}:${IMAGE_TAG} |