-
Notifications
You must be signed in to change notification settings - Fork 126
48 lines (48 loc) · 1.64 KB
/
release.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
name: Release examples
on:
release:
types: [published,prereleased]
jobs:
release_tag:
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: Release Central System 1.6 example
uses: docker/build-push-action@v3
with:
push: true
tags: ldonini/ocpp1.6-central-system:${{ github.event.release.tag_name }}
file: example/1.6/cs/Dockerfile
context: .
- name: Release Charge Point 1.6 example
uses: docker/build-push-action@v3
with:
push: true
tags: ldonini/ocpp1.6-charge-point:${{ github.event.release.tag_name }}
file: example/1.6/cp/Dockerfile
context: .
- name: Release CSMS 2.0.1 example
uses: docker/build-push-action@v3
with:
push: true
tags: ldonini/ocpp2.0.1-csms:${{ github.event.release.tag_name }}
file: example/2.0.1/csms/Dockerfile
platforms: linux/amd64,linux/arm64
context: .
- name: Release charging station 2.0.1 example
uses: docker/build-push-action@v3
with:
push: true
tags: ldonini/ocpp2.0.1-charging-station:${{ github.event.release.tag_name }}
file: example/2.0.1/chargingstation/Dockerfile
platforms: linux/amd64,linux/arm64
context: .