-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (44 loc) · 1.3 KB
/
embedder-build.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build embedder service
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# on:
# push:
# tags:
# - '*'
on:
workflow_dispatch:
env:
# Use docker.io for Docker Hub if empty
#REGISTRY: ghcr.io
# github.repository as <account>/<repo>
#IMAGE_NAME: ${{ github.repository }}
RGNAME: AKS_RG
ACRNAME: cognixacr
AKSNAME: Cognix_AKS
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to ACR
uses: docker/login-action@v3
with:
registry: ${{ env.ACRNAME }}.azurecr.io
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Embedder Service Image Docker Build and Push
uses: docker/build-push-action@v2
with:
context: ./workers/embedder
file: ./workers/embedder/Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ env.ACRNAME }}.azurecr.io/cognix/embedder:${{ github.ref_name }}
build-args: |
COGNIX_VERSION=${{ github.ref_name }}