-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (49 loc) · 1.48 KB
/
test.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
name: Test image
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set Version
id: set-version
run: |
BGMI_VERSION=$(jq -r '.BGmi.version' info.json)
TRANSMISSION_WEB_HOME=$(jq -r '.Transmission.web_home' info.json)
echo "BGMI_VERSION=${BGMI_VERSION}"
echo "TRANSMISSION_WEB_HOME=${TRANSMISSION_WEB_HOME}"
echo "BGMI_VERSION=${BGMI_VERSION}" >> $GITHUB_OUTPUT
echo "TRANSMISSION_WEB_HOME=${TRANSMISSION_WEB_HOME}" >> $GITHUB_OUTPUT
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKER_USERNAME }}/bgmi-all-in-one
tags: |
type=raw,value=test
-
name: Set Up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set Up Buildx
uses: docker/setup-buildx-action@v3
-
name: BGmi
uses: docker/build-push-action@v5
with:
context: .
file: test.Dockerfile
platforms: |
linux/amd64
push: false
build-args: |
BGMI_VERSION=${{ steps.set-version.outputs.BGMI_VERSION }}
TRANSMISSION_WEB_HOME=${{ steps.set-version.outputs.TRANSMISSION_WEB_HOME }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}