Repository navigation
ci: report scheduled sample test failures from a dedicated job (#2670) #1985
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
| # yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json | |
| --- | |
| name: Build samples | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - edge | |
| - v*.* | |
| pull_request: | |
| branches: | |
| - edge | |
| - v*.* | |
| paths: | |
| - samples/** | |
| - .github/workflows/build.yaml | |
| permissions: {} | |
| env: | |
| VERSION: latest | |
| CONTAINER_REGISTRY: ghcr.io/radius-project | |
| jobs: | |
| build-ghcr: | |
| name: Build and push sample images to GHCR | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| permissions: | |
| contents: read | |
| packages: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - directory: samples/demo/ | |
| image: samples/demo | |
| - directory: samples/dapr/ui/ | |
| image: samples/dapr-frontend | |
| - directory: samples/dapr/nodeapp/ | |
| image: samples/dapr-backend | |
| - directory: samples/aws/ | |
| image: samples/aws | |
| - directory: samples/aws-sqs/ | |
| image: samples/aws-sqs | |
| - directory: samples/volumes/ | |
| image: samples/volumes | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ github.token }} | |
| - name: Build and push ${{ matrix.image }} | |
| uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0 | |
| with: | |
| context: ./${{ matrix.directory }} | |
| push: ${{ github.event_name == 'push' && true || false }} | |
| tags: ${{ env.CONTAINER_REGISTRY }}/${{ matrix.image }}:${{ env.VERSION }} |