-
Notifications
You must be signed in to change notification settings - Fork 2
107 lines (94 loc) · 3.59 KB
/
docker.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
name: Docker CI
# Controls when the action will run.
on:
push:
branches: [master]
paths-ignore:
- "*.md"
- "docs/**"
pull_request:
branches: [master]
paths-ignore:
- "*.md"
- "docs/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup kafka-connect-cassandra-sink
run: curl https://downloads.datastax.com/kafka/kafka-connect-cassandra-sink-1.4.0.tar.gz -o ./connect-cassandra/setup/kafka-connect-cassandra-sink-1.4.0.tar.gz && chmod +x ./connect-elastic/elastic-init.sh
- name: Docker kafka-connect-cassandra image
uses: docker/[email protected]
with:
# Build's context is the set of files located in the specified PATH or URL
context: ./connect-cassandra
# Whether to push the image
push: true
# Tag to assign the image
tags: tendto/dotingestion2:kafka-connect-cassandra
- name: Docker spark image
uses: docker/[email protected]
with:
# Build's context is the set of files located in the specified PATH or URL
context: ./spark
# Whether to push the image
push: true
# Tag to assign the image
tags: tendto/dotingestion2:spark
- name: Docker kafka-connect-elastic image
uses: docker/[email protected]
with:
# Build's context is the set of files located in the specified PATH or URL
context: ./connect-elastic
# Whether to push the image
push: true
# Tag to assign the image
tags: tendto/dotingestion2:kafka-connect-elasticsearch
- name: Docker cassandra image
uses: docker/[email protected]
with:
# Build's context is the set of files located in the specified PATH or URL
context: ./cassandra
# Whether to push the image
push: true
# Tag to assign the image
tags: tendto/dotingestion2:cassandra
- name: Docker ingestion image
uses: docker/[email protected]
with:
# Build's context is the set of files located in the specified PATH or URL
context: ./ingestion
# Whether to push the image
push: true
# Tag to assign the image
tags: tendto/dotingestion2:ingestion
- name: Docker kafkastream image
uses: docker/[email protected]
with:
# Build's context is the set of files located in the specified PATH or URL
context: ./stream
# Whether to push the image
push: true
# Tag to assign the image
tags: tendto/dotingestion2:kafkastream
- name: Docker api image
uses: docker/[email protected]
with:
# Build's context is the set of files located in the specified PATH or URL
context: ./api
# Whether to push the image
push: true
# Tag to assign the image
tags: tendto/dotingestion2:api