Add Insights (zero-effort issues) (#141) #108
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 and Push Multi-Arch Image' | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'release-*' | |
| tags: | |
| - 'v*' | |
| concurrency: | |
| group: march-build-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| tag: ${{ github.ref == 'refs/heads/main' && 'latest' || github.ref_name }} | |
| jobs: | |
| linux-image-build: | |
| uses: konveyor/release-tools/.github/workflows/build-push-images.yaml@main | |
| with: | |
| registry: "quay.io/konveyor" | |
| image_name: "static-report" | |
| containerfile: "./Dockerfile" | |
| architectures: '[ "amd64", "arm64", "ppc64le", "s390x" ]' | |
| extra-args: "--build-arg VERSION=${{ github.ref_name }} --ulimit nofile=4096:4096" | |
| secrets: | |
| registry_username: ${{ secrets.QUAY_PUBLISH_ROBOT }} | |
| registry_password: ${{ secrets.QUAY_PUBLISH_TOKEN }} | |
| windows-image-build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@main | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@master | |
| with: | |
| registry: "quay.io/konveyor" | |
| username: ${{ secrets.QUAY_PUBLISH_ROBOT }} | |
| password: ${{ secrets.QUAY_PUBLISH_TOKEN }} | |
| - name: Build static-report | |
| run: | | |
| docker build -f ./Dockerfile.windows -t quay.io/konveyor/static-report:$env:tag-windowsservercore-ltsc2022 . | |
| docker push quay.io/konveyor/static-report:$env:tag-windowsservercore-ltsc2022 | |
| update-manifest: | |
| needs: | |
| - linux-image-build | |
| - windows-image-build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: update manifest | |
| run: | | |
| TAG=${GITHUB_REF_NAME/main/latest} | |
| podman manifest create temp | |
| podman manifest add temp --all quay.io/konveyor/static-report:${tag} | |
| podman manifest add temp --all quay.io/konveyor/static-report:${tag}-windowsservercore-ltsc2022 | |
| podman tag temp quay.io/konveyor/static-report:${tag} | |
| - name: Push manifest to Quay | |
| uses: redhat-actions/push-to-registry@main | |
| id: push | |
| with: | |
| image: konveyor/static-report | |
| tags: ${{ env.tag }} | |
| username: ${{ secrets.QUAY_PUBLISH_ROBOT }} | |
| password: ${{ secrets.QUAY_PUBLISH_TOKEN }} | |
| registry: quay.io |