Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVitale committed Jan 20, 2024
1 parent e4aeed2 commit 2350963
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/commit-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.IMAGE_PUSH_TOKEN }}
registry: ${{ env.REGISTRY }}

- name: Build and push
run: |
docker buildx build --push --platform=linux/amd64,linux/arm64 -t ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/${{ matrix.project.name }}:latest ${{ matrix.project.directory }}

# - name: Build and push
# uses: docker/build-push-action@v5
# id: build
# with:
# context: ${{ matrix.project.directory }}
# platforms: linux/amd64,linux/arm64
# push: true
# tags: ${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/${{ matrix.project.name }}:${{ env.VERSION }},${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/${{ matrix.project.name }}:latest
- name: Build and push
uses: docker/build-push-action@v5
id: build
with:
context: ${{ matrix.project.directory }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/${{ matrix.project.name }}:${{ env.VERSION }}
${{ env.REGISTRY }}/${{ env.ORGANIZATION }}/${{ matrix.project.name }}:latest
14 changes: 7 additions & 7 deletions ollama/orca-mini/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM --platform=$BUILDPLATFORM docker.io/ollama/ollama:latest

RUN bash -c ' \
( ollama serve ) & serverpid="$!"; \
sleep 5; \
ollama pull orca-mini && \
kill "$serverpid" && \
wait "$serverpid" \
'
# RUN bash -c ' \
# ( ollama serve ) & serverpid="$!"; \
# sleep 5; \
# ollama pull orca-mini && \
# kill "$serverpid" && \
# wait "$serverpid" \
# '

0 comments on commit 2350963

Please sign in to comment.