-
Notifications
You must be signed in to change notification settings - Fork 1
123 lines (108 loc) · 3.59 KB
/
Copy pathcontinuous-delivery.yml
File metadata and controls
123 lines (108 loc) · 3.59 KB
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
name: Continuous Delivery
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
release_amd64:
name: Release linux/amd64
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.build_push.outputs.tag }}
steps:
- name: Checkout source code
uses: actions/checkout@v7
- name: Build and push
id: build_push
uses: ./.github/actions/build-push
with:
docker_hub_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKERHUB_TOKEN }}
platform: linux/amd64
release_ppc64le:
name: Release linux/ppc64le
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.build_push.outputs.tag }}
steps:
- name: Checkout source code
uses: actions/checkout@v7
- name: Build and push
id: build_push
uses: ./.github/actions/build-push
with:
docker_hub_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKERHUB_TOKEN }}
platform: linux/ppc64le
release_386:
name: Release linux/386
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.build_push.outputs.tag }}
steps:
- name: Checkout source code
uses: actions/checkout@v7
- name: Build and push
id: build_push
uses: ./.github/actions/build-push
with:
docker_hub_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKERHUB_TOKEN }}
platform: linux/386
release_arm64:
name: Release linux/arm64
runs-on: ubuntu-24.04-arm
outputs:
tag: ${{ steps.build_push.outputs.tag }}
steps:
- name: Checkout source code
uses: actions/checkout@v7
- name: Build and push
id: build_push
uses: ./.github/actions/build-push
with:
docker_hub_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKERHUB_TOKEN }}
platform: linux/arm64
release_arm_v7:
name: Release linux/arm/v7
runs-on: ubuntu-24.04-arm
outputs:
tag: ${{ steps.build_push.outputs.tag }}
steps:
- name: Checkout source code
uses: actions/checkout@v7
- name: Build and push
id: build_push
uses: ./.github/actions/build-push
with:
docker_hub_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKERHUB_TOKEN }}
platform: linux/arm/v7
merge_clean_release_tags:
needs:
- release_amd64
- release_ppc64le
- release_386
- release_arm64
- release_arm_v7
name: Merge and clean release tags
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v7
- name: Merge
uses: ./.github/actions/merge
with:
docker_hub_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKERHUB_TOKEN }}
tags: "${{ needs.release_amd64.outputs.tag }},${{ needs.release_ppc64le.outputs.tag }},${{ needs.release_386.outputs.tag }},${{ needs.release_arm64.outputs.tag }},${{ needs.release_arm_v7.outputs.tag }}"
- name: Clean
uses: ./.github/actions/clean
with:
docker_hub_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKERHUB_TOKEN }}
tags: "${{ needs.release_amd64.outputs.tag }},${{ needs.release_ppc64le.outputs.tag }},${{ needs.release_386.outputs.tag }},${{ needs.release_arm64.outputs.tag }},${{ needs.release_arm_v7.outputs.tag }}"