feat: Renovate.json update to match "local>hmcts/.github:renovate-config" #17
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 Dockerfile if changed and run smoke tests" | |
| on: [pull_request] | |
| env: | |
| IMAGE_TAG: pr-test | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed Dockerfile | |
| id: changed-files-specific | |
| uses: tj-actions/[email protected] | |
| with: | |
| files: | | |
| Dockerfile | |
| .dockerignore | |
| tools/entrypoint.sh | |
| - name: Build if Dockerfile changed | |
| if: steps.changed-files-specific.outputs.any_changed == 'true' | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: . | |
| build-args: | | |
| INSTALL_ALL=true | |
| platforms: linux/amd64 | |
| push: false | |
| tags: | | |
| ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }} | |
| - name: Run structure tests | |
| if: steps.changed-files-specific.outputs.any_changed == 'true' | |
| uses: plexsystems/[email protected] | |
| with: | |
| image: ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }} | |
| config: .github/.container-structure-test-config.yaml | |
| - name: Dive - check image for waste files | |
| if: steps.changed-files-specific.outputs.any_changed == 'true' | |
| uses: MaxymVlasov/[email protected] | |
| with: | |
| image: ghcr.io/${{ github.repository }}:${{ env.IMAGE_TAG }} | |
| config-file: ${{ github.workspace }}/.github/.dive-ci.yaml | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |