-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (64 loc) · 2.35 KB
/
push.yaml
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
name: Push
on:
push:
branches:
- main
jobs:
build-containers:
runs-on:
labels: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build Base Image
uses: docker/build-push-action@v4
with:
push: true
tags: roadiehq/broker:base
context: dockerfiles
file: dockerfiles/base.Dockerfile
- name: Build Kubernetes
uses: docker/build-push-action@v4
with:
push: true
file: dockerfiles/Dockerfile
context: dockerfiles/kubernetes
tags: roadiehq/broker:${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-kubernetes,roadiehq/broker:kubernetes
- name: Build Sonarqube
uses: docker/build-push-action@v4
with:
push: true
file: dockerfiles/Dockerfile
context: dockerfiles/sonarqube
tags: roadiehq/broker:${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-sonarqube,roadiehq/broker:sonarqube
- name: Build Jenkins
uses: docker/build-push-action@v4
with:
push: true
file: dockerfiles/Dockerfile
context: dockerfiles/jenkins
tags: roadiehq/broker:${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-jenkins,roadiehq/broker:jenkins
- name: Build Cost Insights
uses: docker/build-push-action@v4
with:
push: true
file: dockerfiles/Dockerfile
context: dockerfiles/cost-insights
tags: roadiehq/broker:${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-cost-insights,roadiehq/broker:cost-insights
- name: Build ArgoCD
uses: docker/build-push-action@v4
with:
push: true
file: dockerfiles/Dockerfile
context: dockerfiles/argocd
tags: roadiehq/broker:${{ github.run_id }}.${{ github.run_number }}.${{ github.run_attempt }}-argocd,roadiehq/broker:argocd