Skip to content

fix: cronjob start failure #1406

fix: cronjob start failure

fix: cronjob start failure #1406

Workflow file for this run

name: pr-ci-build
on:
pull_request:
types: [opened, edited, synchronize, labeled, unlabeled]
jobs:
rainbond:
runs-on: ubuntu-latest
strategy:
matrix:
component: [api, chaos, worker, init-probe, mq]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set release description
run: |
buildTime=$(date +%F-%H)
git_commit=$(git log -n 1 --pretty --format=%h)
release_desc="dev-${git_commit}-${buildTime}"
echo "release_desc=$release_desc" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
build-args: |
RELEASE_DESC=${{ env.release_desc }}
context: .
file: hack/contrib/docker/${{ matrix.component }}/Dockerfile
push: false
tags: |
rainbond/rbd-${{ matrix.component }}:dev