forked from martin-vi/deegree-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
104 lines (101 loc) · 3.2 KB
/
docker-image.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Docker Image CI
on:
schedule:
- cron: "15 3,15 * * *"
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-3_3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push v3.3
uses: docker/build-push-action@v5
with:
context: ./3.3
platforms: linux/amd64,linux/arm64
push: true
tags: tfr42/deegree:3.3.21,tfr42/deegree:3.3
build-3_4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push v3.4
uses: docker/build-push-action@v5
with:
context: ./3.4
platforms: linux/amd64,linux/arm64
push: true
tags: tfr42/deegree:3.4.35,tfr42/deegree:3.4
build-3_5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push v3.5
uses: docker/build-push-action@v5
with:
context: ./3.5
platforms: linux/amd64,linux/arm64
push: true
tags: tfr42/deegree:3.5.8,tfr42/deegree:3.5,tfr42/deegree:latest
build-3_5_jdk17:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push v3.5 with JDK 17
uses: docker/build-push-action@v5
with:
context: ./3.5
file: ./3.5/DockerfileJdk17
platforms: linux/amd64,linux/arm64
push: true
tags: tfr42/deegree:3.5.8-jdk17-tomcat10,tfr42/deegree:3.5-jdk17-tomcat10,tfr42/deegree:3.5-jdk17
build-3_6:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push v3.6 with JDK 17
uses: docker/build-push-action@v5
with:
context: ./3.6
file: ./3.6/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: tfr42/deegree:3.6,tfr42/deegree:3.6.0,tfr42/deegree:3.6-jdk17-tomcat10,tfr42/deegree:3.6-jdk17