Skip to content

perf(filter): Optimize maps read/writes in hot path (#1114) #281

perf(filter): Optimize maps read/writes in hot path (#1114)

perf(filter): Optimize maps read/writes in hot path (#1114) #281

name: Publish docker nightly
on:
push:
branches:
- "master"
jobs:
publish:
name: Publish images
runs-on: ubuntu-22.04
strategy:
matrix:
services: [api, checker, cli, notifier, filter]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
name: Login to DockerHub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build docker tag
run: echo "DOCKER_TAG=$(echo $(date '+%Y-%m-%d').${GITHUB_SHA:0:7})" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v4
with:
file: ./Dockerfile.${{matrix.services}}
build-args: |
MoiraVersion=${{env.DOCKER_TAG}}
GIT_COMMIT=${{github.sha}}
push: true
tags: moira/${{matrix.services}}-nightly:${{env.DOCKER_TAG}},moira/${{matrix.services}}-nightly:latest
- name: Comment PR with build tag
uses: mshick/add-pr-comment@v2
if: always()
with:
refresh-message-position: true
message-success:
"Build and push Docker images with tag: ${{env.DOCKER_TAG}}"
message-failure:
"Builds images failed. See action log for details"