Fix lint warning #4643
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |