Skip to content

build

build #195

Workflow file for this run

name: build
on:
schedule:
- cron: "00 3 * * 6"
push:
paths-ignore:
- 'README.md'
- 'docker-compose.yml'
- '.github/**'
branches:
- 'master'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU-action
uses: docker/setup-qemu-action@v3
- name: Docker buildx
uses: docker/setup-buildx-action@v3
- name: Dockerhub login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get xo-server version
id: xo-version
run: |
echo "XO_VERSION=$(curl -s https://raw.githubusercontent.com/vatesfr/xen-orchestra/master/packages/xo-server/package.json | jq -r .version)" >> $GITHUB_ENV
- name: Build image and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: true
tags: |
ronivay/xen-orchestra:latest
ronivay/xen-orchestra:${{ env.XO_VERSION }}