diff --git a/.github/actions/build_containers/action.yaml b/.github/actions/build_containers/action.yaml index ffa8dfbc7..3ad08fb37 100644 --- a/.github/actions/build_containers/action.yaml +++ b/.github/actions/build_containers/action.yaml @@ -9,7 +9,6 @@ inputs: daemons: required: true type: string - default: "pmacctd nfacctd sfacctd uacctd pmbgpd pmbmpd pmtelemetryd" ci_num_workers: required: false type: string diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6e39e4804..d58175541 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,6 +7,9 @@ on: - cron: '0 0 * * *' # every day at midnight #Global vars +env: + DAEMONS: "pmacctd nfacctd sfacctd uacctd pmbgpd pmbmpd pmtelemetryd" + jobs: ### Step 1: build container images builder-docker: @@ -114,8 +117,19 @@ jobs: fetch-depth: 0 fetch-tags: 1 + - name: Check DAEMONS env. variable... + run: | + #Sanity, avoid regression #817 + N_DAEMONS="$(echo $DAEMONS | wc --words)" + if [[ "${N_DAEMONS}" != "7" ]]; then + echo "ERROR: invalid number of DAEMONS: ${N_DAEMONS}" + exit 1 + fi + - name: Build containers uses: ./pmacct/.github/actions/build_containers/ + with: + daemons: ${{env.DAEMONS}} - name: Docker save images run: |