-
Notifications
You must be signed in to change notification settings - Fork 58
34 lines (32 loc) · 922 Bytes
/
main-latest.yml
File metadata and controls
34 lines (32 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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: [ubuntu24.04]
env:
OS_NAME: ${{ matrix.os }}
REGISTRY_NAME: milvusdb/milvus-operator
IMAGE_TAG: "main-latest"
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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}