Skip to content

Commit

Permalink
add github pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Aug 25, 2023
1 parent e2d9b23 commit 3a04954
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,34 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
model-server-llama-cpp:
needs: base
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: "${{ vars.DOCKERHUB_USERNAME }}"
password: "${{ secrets.DOCKERHUB_TOKEN }}"
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: substratusai/${{ github.job }}
- name: Build and push
id: build-and-push
uses: docker/build-push-action@v4
with:
context: ./${{ github.job }}
platforms: "linux/amd64"
build-args: |
BASE_IMAGE=${{ needs.base.outputs.tag }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 3a04954

Please sign in to comment.