build #167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v5 | |
with: | |
context: . | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
ronivay/xen-orchestra:latest | |
ronivay/xen-orchestra:${{ env.XO_VERSION }} |