-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (43 loc) · 1.33 KB
/
build.yaml
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
on:
push:
branches:
- master
- develop
- dotnet
release:
types: [ published ]
workflow_dispatch:
jobs:
build:
name: Build
if: github.repository == 'xibosignage/xibo-xmr'
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Login
run: |
docker login ghcr.io --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
- name: Build Latest
if: github.ref == 'refs/heads/master'
run: |
docker build . -t ghcr.io/xibosignage/xibo-xmr:latest
docker push ghcr.io/xibosignage/xibo-xmr:latest
- name: Build Develop
if: github.ref == 'refs/heads/develop'
run: |
docker build . -t ghcr.io/xibosignage/xibo-xmr:develop
docker push ghcr.io/xibosignage/xibo-xmr:develop
- name: Build Develop
if: github.ref == 'refs/heads/dotnet'
run: |
docker build . -t ghcr.io/xibosignage/xibo-xmr:dotnet
docker push ghcr.io/xibosignage/xibo-xmr:dotnet
- name: Build Release
if: github.event_name == 'release'
run: |
docker build . -t ghcr.io/xibosignage/xibo-xmr:${GITHUB_REF##*/}
docker push ghcr.io/xibosignage/xibo-xmr:${GITHUB_REF##*/}