-
Notifications
You must be signed in to change notification settings - Fork 130
51 lines (51 loc) · 1.6 KB
/
docker-publish.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
name: Publish examples
on:
push:
branches:
- master
jobs:
publish_latest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Central System 1.6 example
uses: docker/build-push-action@v3
with:
push: true
tags: ldonini/ocpp1.6-central-system:latest
file: example/1.6/cs/Dockerfile
platforms: linux/amd64,linux/arm64
context: .
- name: Build Charge Point 1.6 example
uses: docker/build-push-action@v3
with:
push: true
tags: ldonini/ocpp1.6-charge-point:latest
file: example/1.6/cp/Dockerfile
platforms: linux/amd64,linux/arm64
context: .
- name: Build CSMS 2.0.1 example
uses: docker/build-push-action@v3
with:
push: true
tags: ldonini/ocpp2.0.1-csms:latest
file: example/2.0.1/csms/Dockerfile
platforms: linux/amd64,linux/arm64
context: .
- name: Build Charging Station 2.0.1 example
uses: docker/build-push-action@v3
with:
push: true
tags: ldonini/ocpp2.0.1-charging-station:latest
file: example/2.0.1/chargingstation/Dockerfile
platforms: linux/amd64,linux/arm64
context: .