Skip to content

3.3.9 - Statistic migration (#2145) #1335

3.3.9 - Statistic migration (#2145)

3.3.9 - Statistic migration (#2145) #1335

name: Build Container
on:
push:
branches:
- master
- develop
- release23
- release33
jobs:
build:
name: Build Containers
if: github.repository == 'xibosignage/xibo-cms'
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
# Latest
- name: Build Latest
if: github.ref == 'refs/heads/master'
run: |
docker build . -t ghcr.io/xibosignage/xibo-cms:latest --build-arg GIT_COMMIT=${GITHUB_SHA}
- name: Push Latest
if: github.ref == 'refs/heads/master'
run: |
docker login ghcr.io --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
docker push ghcr.io/xibosignage/xibo-cms:latest
# Release branch
- name: Build Branch
if: github.ref != 'refs/heads/master'
run: |
docker build . -t ghcr.io/xibosignage/xibo-cms:${GITHUB_REF##*/} --build-arg GIT_COMMIT=${GITHUB_SHA}
- name: Push Branch
if: github.ref != 'refs/heads/master'
run: |
docker login ghcr.io --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
docker push ghcr.io/xibosignage/xibo-cms:${GITHUB_REF##*/}