-
Notifications
You must be signed in to change notification settings - Fork 0
162 lines (162 loc) · 5.13 KB
/
docker-hub-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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: Update images
on:
workflow_dispatch:
push:
branches: [ master ]
schedule:
- cron: '0 15 * * 6' # Weekly on Saturdays at 15:00
jobs:
py2-ubuntu-22_04:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: py2-ubuntu-22.04
uses: docker/[email protected]
with:
context: py2/ubuntu/22.04
tags: imiobe/base:py2-ubuntu-22.04
platforms: linux/amd64
pull: true
push: true
py2-ubuntu-22_04_harbor:
runs-on:
group: self-hosted
steps:
- name: Build push and notify
uses: IMIO/gha/[email protected]
env:
IMAGE_NAME: base
with:
IMAGE_NAME: ${{ env.IMAGE_NAME }}
CONTEXT: py2/ubuntu/22.04
DOCKERFILE: py2/ubuntu/22.04/Dockerfile
IMAGE_TAGS: |
${{ secrets.HARBOR_URL }}/common/${{ env.IMAGE_NAME }}:py2-ubuntu-22.04
REGISTRY_URL: ${{ secrets.HARBOR_URL }}/common
REGISTRY_USERNAME: ${{ secrets.COMMON_HARBOR_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.COMMON_HARBOR_PASSWORD }}
MATTERMOST_WEBHOOK_URL: ${{ secrets.COMMON_MATTERMOST_WEBHOOK_URL }}
py3-alpine:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: py3-alpine
uses: docker/[email protected]
with:
context: py3/alpine
tags: imiobe/base:py3-alpine
platforms: linux/amd64
pull: true
push: true
py3-ubuntu-20_04:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: py3-ubuntu-20.04
uses: docker/[email protected]
with:
context: py3/ubuntu/20.04
tags: imiobe/base:py3-ubuntu-20.04
platforms: linux/amd64
pull: true
push: true
py3-ubuntu-22_04:
runs-on:
group: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: ${{ secrets.HARBOR_URL }}
username: ${{ secrets.COMMON_HARBOR_USERNAME }}
password: ${{ secrets.COMMON_HARBOR_PASSWORD }}
- name: py3-ubuntu-22.04
uses: docker/[email protected]
with:
context: py3/ubuntu/22.04
tags: ${{ secrets.HARBOR_URL }}/common/base:py3-ubuntu-22.04
platforms: linux/amd64
pull: true
push: true
py3-ubuntu-24_04:
runs-on:
group: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: ${{ secrets.HARBOR_URL }}
username: ${{ secrets.COMMON_HARBOR_USERNAME }}
password: ${{ secrets.COMMON_HARBOR_PASSWORD }}
- name: py3-ubuntu-24.04
uses: docker/[email protected]
with:
context: py3/ubuntu/24.04
tags: ${{ secrets.HARBOR_URL }}/common/base:py3-ubuntu-24.04
platforms: linux/amd64
pull: true
push: true
debian-bookworm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: teleservices-bookworm-base
uses: docker/[email protected]
with:
context: debian/bookworm
tags: imiobe/teleservices-bookworm-base:latest
platforms: linux/amd64
pull: true
push: true