forked from xbapps/xbvr
-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (71 loc) · 2.2 KB
/
unofficial.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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!'