Merge pull request #119 from yuvalturg/update-helm-deps #28
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 dev image | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| build-dev: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| packages: write | |
| strategy: | |
| matrix: | |
| include: | |
| - name: llamastack-dist-ui | |
| context: frontend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Quay.io | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: quay.io | |
| username: ${{ secrets.QUAY_USERNAME }} | |
| password: ${{ secrets.QUAY_PASSWORD }} | |
| - name: Generate dev tag | |
| id: tag | |
| run: | | |
| short_sha=$(git rev-parse --short HEAD) | |
| echo "value=dev-${short_sha}" >> $GITHUB_OUTPUT | |
| - name: Build and push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ${{ matrix.context }} | |
| file: ${{ matrix.context }}/Containerfile | |
| push: true | |
| tags: | | |
| quay.io/rh-ai-quickstart/${{ matrix.name }}:${{ steps.tag.outputs.value }} | |
| quay.io/rh-ai-quickstart/${{ matrix.name }}:latest-dev | |
| cache-from: type=registry,ref=quay.io/rh-ai-quickstart/${{ matrix.name }}:buildcache | |
| cache-to: type=registry,ref=quay.io/rh-ai-quickstart/${{ matrix.name }}:buildcache,mode=max |