-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (98 loc) · 2.96 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
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
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-22_04:
runs-on:
labels: [self-hosted, gha-runners]
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: common/base:py3-ubuntu-22.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