Skip to content

Commit

Permalink
"Add api base image to build workflow"
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Davidson committed Oct 26, 2023
1 parent 63bf4a2 commit 27ecf84
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-push-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
build_push_images:
name: Build and push images
runs-on: ubuntu-latest
strategy:
matrix:
include:
- component: api
- component: ui
steps:
- name: Check out the repository
uses: actions/checkout@v3
Expand All @@ -22,7 +27,7 @@ jobs:
id: image-meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/stackhpc/azimuth-llm-ui-base
images: ghcr.io/stackhpc/azimuth-llm-${{ matrix.component }}-base
# Produce the branch name or tag and the SHA as tags
tags: |
type=ref,event=branch
Expand All @@ -32,8 +37,8 @@ jobs:
- name: Build and push image
uses: stackhpc/github-actions/docker-multiarch-build-push@master
with:
cache-key: ui-base
context: ./images/ui-base
cache-key: ${{ matrix.component }}-base
context: ./images/${{ matrix.component }}-base
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.image-meta.outputs.tags }}
Expand Down

0 comments on commit 27ecf84

Please sign in to comment.