-
Notifications
You must be signed in to change notification settings - Fork 19
78 lines (69 loc) · 3.29 KB
/
docker-build.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
68
69
70
71
72
73
74
75
76
77
78
---
name: docker-build
on:
push:
branches-ignore:
- development/**
- q/*/**
env:
PROJECT_NAME: ${{ github.event.repository.name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildk
uses: docker/setup-buildx-action@v3
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push federation image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}-nodesvc-base
file: images/nodesvc-base/Dockerfile
cache-from: type=gha,scope=federation
cache-to: type=gha,scope=federation,mode=max
# BB-631 : remove this after federation image with NodeJS 22 is available
continue-on-error: true
- name: Push dashboards to the development namespace
run: |
oras push ghcr.io/${{ github.repository }}/${{ env.PROJECT_NAME }}-dashboards:${{ github.sha }} \
ingestion/ingestion-processor-dashboard.json:application/grafana-dashboard+json \
ingestion/ingestion-producer-dashboard.json:application/grafana-dashboard+json \
ingestion/ingestion-global-dashboard.json:application/grafana-dashboard+json \
ingestion/ingestion-processor-alert.yaml:application/prometheus-alerts+yaml \
ingestion/ingestion-producer-alert.yaml:application/prometheus-alerts+yaml \
lifecycle/dashboard.json:application/grafana-dashboard+json \
lifecycle/alerts.yaml:application/prometheus-alerts+yaml \
cold-storage/dashboard.json:application/grafana-dashboard+json \
replication/dashboard.json:application/grafana-dashboard+json \
replication/alerts.yaml:application/prometheus-alerts+yaml \
notification/dashboard.json:application/grafana-dashboard+json \
notification/alerts.yaml:application/prometheus-alerts+yaml \
oplog-populator/dashboard.json:application/grafana-dashboard+json \
oplog-populator/alerts.yaml:application/prometheus-alerts+yaml
working-directory: monitoring
- name: Push policies into the development namespace
run: |
oras push ghcr.io/${{ github.repository }}/${{ env.PROJECT_NAME }}-policies:${{ github.sha }} \
extensions/lifecycle/conductor/policy.json:application/vnd.iam-policy+json \
extensions/lifecycle/bucketProcessor/policy.json:application/vnd.iam-policy+json \
extensions/lifecycle/objectProcessor/policy.json:application/vnd.iam-policy+json \
extensions/lifecycle/objectProcessor/policy_transition.json:application/vnd.iam-policy+json \
extensions/gc/policy.json:application/vnd.iam-policy+json \
policies/queue_populator_policy.json:application/vnd.iam-policy+json