-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (47 loc) · 1.82 KB
/
samples2docker.yml
File metadata and controls
62 lines (47 loc) · 1.82 KB
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
name: samples-docker
on:
workflow_dispatch:
push:
branches: [ "master", "dev" ]
paths:
- 'samples/**'
jobs:
build:
runs-on: ubuntu-22.04
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: mqtt-connection docker
run: dotnet publish samples/mqtt-connection -c Release --os linux --arch x64 /t:PublishContainer /p:ContainerImageName=ghcr.io/iotmodels/mqtt-connection /p:ContainerImageTag=latest
- name: mqtt-connection push
run: docker push ghcr.io/iotmodels/mqtt-connection:latest
- name: memmon docker
run: docker build . --file samples/memmon/Dockerfile --tag ghcr.io/iotmodels/memmon:x64
- name: memmon docker push
run: docker push ghcr.io/iotmodels/memmon:x64
- name: pi-sense docker
run: docker build . --file samples/pi-sense-device/Dockerfile --tag ghcr.io/iotmodels/pi-sense-device:x64
- name: pi-sense docker push
run: docker push ghcr.io/iotmodels/pi-sense-device:x64
- name: grpc docker
run: docker build -f samples/mqtt-grpc-device/Dockerfile . -t ghcr.io/iotmodels/mqtt-grpc-device:latest
- name: grpc push
run: docker push ghcr.io/iotmodels/mqtt-grpc-device:latest
#- name: Build the Docker image ARM
# run: docker build . --file samples/memmon/Dockerfile.pi --tag ghcr.io/ridomin/memmon:arm
#- name: push image arm
# run: docker push ghcr.io/iotmodels/memmon:arm