forked from bigbluebutton/greenlight
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1014 Bytes
/
build.push.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
env:
RUBY_VERSION: 2.7.2
name: Build Push
on:
push:
branches: "master"
jobs:
main:
name: Build Docker Image
runs-on: ubuntu-18.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Github Container Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Compute Short SHA
uses: farhatahmad/[email protected]
id: short-sha
with:
length: 7
- name: Get Branch Name
uses: farhatahmad/branch-names@v2
id: branch-name
- name: Build and Push latest
uses: docker/build-push-action@v2
with:
push: true
tags: |
bigbluebutton/greenlight:master
bigbluebutton/greenlight:latest
build-args: version_code=${{ steps.branch-name.outputs.ref_branch }} (${{ steps.short-sha.outputs.sha }})