-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1.04 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
name: Build
on: [workflow_dispatch]
#See latest SDK: https://wiki.teltonika-networks.com/view/Software_Development_Kit
env:
VERSION: "00.07.06.5"
CHECKSUM: "77e7432b558d062c62eebf9bd72a9adf"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 210
steps:
- name: Checkout
uses: actions/checkout@master
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
swap-storage: true
- name: Build
run: |
docker build \
--platform linux/amd64 \
--pull \
--build-arg RUTOS_VERSION=$VERSION \
--build-arg RUTOS_CHECKSUM=$CHECKSUM \
-t ghcr.io/paresy/rutx-sdk:$VERSION \
-f Dockerfile .
- name: Push
run: |
docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
docker push ghcr.io/paresy/rutx-sdk:$VERSION