-
Notifications
You must be signed in to change notification settings - Fork 41
47 lines (40 loc) · 1.15 KB
/
build.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
42
43
44
45
46
47
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 }}