Docker build & test #736
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 & test | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
schedule: | |
- cron: '0 0 * * 1,2,3,4,5' | |
workflow_dispatch: | |
jobs: | |
build_docker_image: | |
name: "Call build and push action" | |
uses: ./.github/workflows/build-and-push-Docker-image.yml | |
secrets: inherit | |
permissions: | |
packages: write | |
contents: read | |
with: | |
image-name: ${{ github.event.repository.name }} | |
image-tag: | | |
${{ | |
github.event_name == 'pull_request' && format('{0}{1}','pr', github.event.pull_request.number) || | |
github.event_name == 'schedule' && 'nightly' || | |
github.event_name == 'push' && github.ref_name || | |
github.event_name == 'workflow_dispatch' && github.ref_name || | |
github.sha | |
}} | |
build_private_docker_image: | |
name: "Build private docker image" | |
needs: build_docker_image | |
strategy: | |
# if one build or test fails, permit the others to run | |
fail-fast: false | |
# build images in parallel | |
matrix: | |
image-name: | |
- rmi_pacta_2023q4_pa2024ch | |
- rmi_pacta_2023q4_pa2024ch_sectoral | |
- rmi_pacta_2022q4_general | |
- rmi_pacta_2023q4_general | |
uses: ./.github/workflows/build-push-private.yml | |
secrets: inherit | |
with: | |
image-name: ${{ matrix.image-name }} | |
add-comment: | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: RMI-PACTA/actions/.github/workflows/add-comment-table.yml@main | |
needs: [build_docker_image, build_private_docker_image] | |
with: | |
header: "Docker build status" | |