Build Container Images #109
This file contains hidden or 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: Build Container Images | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: 0 0 * * 0 | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| image: | |
| - provision-vm-service/check-task-complete | |
| - provision-vm-service/clone-template | |
| - provision-vm-service/list-providers | |
| - provision-vm-service/list-templates | |
| - provision-vm-service/power-on-vm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build image | |
| run: bin/build_image ${{ matrix.image }} | |
| - if: github.repository_owner == 'ManageIQ' && github.ref_name == 'master' | |
| name: Docker login | |
| run: echo ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | docker login docker.io --password-stdin --username ${{ secrets.DOCKER_REGISTRY_USERNAME }} | |
| - if: github.repository_owner == 'ManageIQ' && github.ref_name == 'master' | |
| name: Push container | |
| run: bin/push_image ${{ matrix.image }} |