This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
123 lines (109 loc) · 5.85 KB
/
ci-windows-2019.yaml
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#######################################################
# CI Build pipeline YAML for Windows 2019 based builds
#######################################################
name: ci-windows-2019
on:
push:
branches:
- main
- master
- releases/** # in future to release from release branch
paths:
- rabbitmq/windows/** # build only where an update to windows folder
- .github/workflows/ci-windows-latest.yaml
jobs:
# TO-DO: Could simplify steps further, but probably in next iteration
# For now a quick approach
build-docker-ltsc2019:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Build and Push 3.11.2
- name: Build the Docker image 3.11.2
run: |
docker build . --file ./rabbitmq/windows/3.11.2/Dockerfile --tag micdenny/rabbitmq-windows:ltsc2019-latest --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.11.2
run: |
docker tag micdenny/rabbitmq-windows:ltsc2019-latest micdenny/rabbitmq-windows:3.11.2-ltsc2019
docker tag micdenny/rabbitmq-windows:ltsc2019-latest micdenny/rabbitmq-windows:3.11.2-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:ltsc2019-latest
docker push micdenny/rabbitmq-windows:3.11.2-ltsc2019
docker push micdenny/rabbitmq-windows:3.11.2-servercore-ltsc2019
# Build and Push 3.11.0
- name: Build the Docker image 3.11.0
run: |
docker build . --file ./rabbitmq/windows/3.11.0/Dockerfile --tag micdenny/rabbitmq-windows:3.11.0-ltsc2019 --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.11.0
run: |
docker tag micdenny/rabbitmq-windows:3.11.0-ltsc2019 micdenny/rabbitmq-windows:3.11.0-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:3.11.0-ltsc2019
docker push micdenny/rabbitmq-windows:3.11.0-servercore-ltsc2019
# Build and Push 3.10.7
- name: Build the Docker image 3.10.7
run: |
docker build . --file ./rabbitmq/windows/3.10.7/Dockerfile --tag micdenny/rabbitmq-windows:3.10.7-ltsc2019 --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.10.7
run: |
docker tag micdenny/rabbitmq-windows:3.10.7-ltsc2019 micdenny/rabbitmq-windows:3.10.7-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:3.10.7-ltsc2019
docker push micdenny/rabbitmq-windows:3.10.7-servercore-ltsc2019
# Build and Push 3.9.24
- name: Build the Docker image 3.9.24
run: |
docker build . --file ./rabbitmq/windows/3.9.24/Dockerfile --tag micdenny/rabbitmq-windows:3.9.24-ltsc2019 --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.9.24
run: |
docker tag micdenny/rabbitmq-windows:3.9.24-ltsc2019 micdenny/rabbitmq-windows:3.9.24-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:3.9.24-ltsc2019
docker push micdenny/rabbitmq-windows:3.9.24-servercore-ltsc2019
# Build and Push 3.9.22
- name: Build the Docker image 3.9.22
run: |
docker build . --file ./rabbitmq/windows/3.9.22/Dockerfile --tag micdenny/rabbitmq-windows:3.9.22-ltsc2019 --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.9.22
run: |
docker tag micdenny/rabbitmq-windows:3.9.22-ltsc2019 micdenny/rabbitmq-windows:3.9.22-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:3.9.22-ltsc2019
docker push micdenny/rabbitmq-windows:3.9.22-servercore-ltsc2019
# Build and Push 3.8.35
- name: Build the Docker image 3.8.35
run: |
docker build . --file ./rabbitmq/windows/3.8.35/Dockerfile --tag micdenny/rabbitmq-windows:3.8.35-ltsc2019 --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.8.35
run: |
docker tag micdenny/rabbitmq-windows:3.8.35-ltsc2019 micdenny/rabbitmq-windows:3.8.35-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:3.8.35-ltsc2019
docker push micdenny/rabbitmq-windows:3.8.35-servercore-ltsc2019
# Build and Push 3.8.16
- name: Build the Docker image 3.8.16
run: |
docker build . --file ./rabbitmq/windows/3.8.16/Dockerfile --tag micdenny/rabbitmq-windows:3.8.16 --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.8.16
run: |
docker tag micdenny/rabbitmq-windows:3.8.16 micdenny/rabbitmq-windows:3.8.16-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:3.8.16
docker push micdenny/rabbitmq-windows:3.8.16-servercore-ltsc2019
# Build and Push 3.6.9
- name: Build the Docker image 3.6.9
run: |
docker build . --file ./rabbitmq/windows/3.6.9/Dockerfile --tag micdenny/rabbitmq-windows:3.6.9 --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.6.9
run: |
docker tag micdenny/rabbitmq-windows:3.6.9 micdenny/rabbitmq-windows:3.6.9-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:3.6.9
docker push micdenny/rabbitmq-windows:3.6.9-servercore-ltsc2019
# Build and Push 3.6.12
- name: Build the Docker image 3.6.12
run: |
docker build . --file ./rabbitmq/windows/3.6.12/Dockerfile --tag micdenny/rabbitmq-windows:3.6.12 --build-arg SERVER_VERSION=ltsc2019
- name: Publish to DockerHub 3.6.12
run: |
docker tag micdenny/rabbitmq-windows:3.6.12 micdenny/rabbitmq-windows:3.6.12-servercore-ltsc2019
docker push micdenny/rabbitmq-windows:3.6.12
docker push micdenny/rabbitmq-windows:3.6.12-servercore-ltsc2019