build UNOFFICIAL #971
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 UNOFFICIAL | |
on: | |
schedule: | |
- cron: "20 6 * * *" | |
workflow_dispatch: | |
push: | |
branches: master | |
jobs: | |
DH: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout master | |
uses: actions/[email protected] | |
with: | |
ref: master | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: login to docker hub | |
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin | |
- name: build the image | |
run: | | |
git checkout origin/util -- Dockerfile .yarnrc | |
docker buildx build --push \ | |
--tag iamklh/xbvr:nightly \ | |
--platform linux/amd64,linux/arm/v7,linux/arm64 . | |
GHCR: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout master | |
uses: actions/[email protected] | |
with: | |
ref: master | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: login to GHCR | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Grab Dockerfile | |
run: | | |
git checkout origin/util -- Dockerfile .yarnrc | |
- name: Build and push | |
uses: docker/[email protected] | |
with: | |
# context: . | |
# file: refs/remotes/origin/util/Dockerfile | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: ghcr.io/therealklh/xbvr:nightly | |
PUSH: | |
needs: [DH, GHCR] | |
runs-on: ubuntu-latest | |
if: ${{github.event.action == 'push' }} | |
steps: | |
- uses: actions/[email protected] # required to clone your code | |
- name: Report Pushing | |
uses: umahmood/pushover-actions@main | |
env: | |
PUSHOVER_TOKEN: ${{ secrets.PUSHOVER_TOKEN }} | |
PUSHOVER_USER: ${{ secrets.PUSHOVER_USER }} | |
with: | |
status: ${{ job.status }} | |
title: 'MASTER has been updated!' | |