-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 961 Bytes
/
build.pr.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
name: Build embeddable
on:
pull_request:
branches:
- master
paths:
# '*' matches any character except '/'
- 'image/*'
- '.github/workflows/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Build Image
run: |
cd image
IMAGE_NAME=ringcentral/rc-embeddable-dev
GH_DOCKER_PKG_IMAGE_NAME=docker.pkg.github.com/ringcentral-docker/vnc-chrome-node/vnc-chrome-node
VERSION="$(awk -F '[:-]' '/FROM/ {print $2}' Dockerfile)"
docker build --tag ${IMAGE_NAME} --file Dockerfile .
docker tag "${IMAGE_NAME}" "${IMAGE_NAME}:${VERSION}"
docker tag "${IMAGE_NAME}" "${IMAGE_NAME}:latest"
docker tag "${IMAGE_NAME}" "${GH_DOCKER_PKG_IMAGE_NAME}:${VERSION}"
docker tag "${IMAGE_NAME}" "${GH_DOCKER_PKG_IMAGE_NAME}:latest"