-
Notifications
You must be signed in to change notification settings - Fork 133
74 lines (57 loc) · 2.91 KB
/
component_docker_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
name: .. 🚧 Docker | Publish image
on:
workflow_call:
secrets:
DOCKER_HUB_ID:
required: true
DOCKER_HUB_PASSWORD:
required: true
inputs:
TAG:
required: true
type: string
ASSETS_TYPE:
required: true
type: string
env:
TAG: ${{ inputs.TAG }}
DOCKER_PUBLISH: true
ASSETS_TYPE: ${{ inputs.ASSETS_TYPE }}
DOCKER_HUB_ID: ${{ secrets.DOCKER_HUB_ID }}
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
jobs:
publish-docker-images:
if: ${{ inputs.ASSETS_TYPE == 'all' || inputs.ASSETS_TYPE == 'docker' }}
name: Create versioned and latest images from RC
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Publish tag of base Docker image
run: make -C build/container/ clean publish/multi-arch-base-tag AGENT_VERSION=${{env.TAG}}
- name: Publish latest of base Docker image
run: make -C build/container/ clean publish/multi-arch-base-latest AGENT_VERSION=${{env.TAG}}
- name: Publish tag of forwarder Docker image
run: make -C build/container/ clean publish/multi-arch-forwarder-tag AGENT_VERSION=${{env.TAG}}
- name: Publish latest of forwarder Docker image
run: make -C build/container/ clean publish/multi-arch-forwarder-latest AGENT_VERSION=${{env.TAG}}
- name: Publish tag of k8s-events-forwarders Docker image
run: make -C build/container/ clean publish/multi-arch-k8s-events-forwarder-tag AGENT_VERSION=${{env.TAG}}
- name: Publish latest of k8s-events-forwarders Docker image
run: make -C build/container/ clean publish/multi-arch-k8s-events-forwarder-latest AGENT_VERSION=${{env.TAG}}
- name: Publish tag of base Docker image FIPS
run: make -C build/container/ clean publish/multi-arch-base-tag AGENT_VERSION=${{env.TAG}} FIPS=-fips
- name: Publish latest of base Docker image FIPS
run: make -C build/container/ clean publish/multi-arch-base-latest AGENT_VERSION=${{env.TAG}} FIPS=-fips
- name: Publish tag of forwarder Docker image FIPS
run: make -C build/container/ clean publish/multi-arch-forwarder-tag AGENT_VERSION=${{env.TAG}} FIPS=-fips
- name: Publish latest of forwarder Docker image FIPS
run: make -C build/container/ clean publish/multi-arch-forwarder-latest AGENT_VERSION=${{env.TAG}} FIPS=-fips
- name: Publish tag of k8s-events-forwarders Docker image FIPS
run: make -C build/container/ clean publish/multi-arch-k8s-events-forwarder-tag AGENT_VERSION=${{env.TAG}} FIPS=-fips
- name: Publish latest of k8s-events-forwarders Docker image FIPS
run: make -C build/container/ clean publish/multi-arch-k8s-events-forwarder-latest AGENT_VERSION=${{env.TAG}} FIPS=-fips