Skip to content

Commit

Permalink
Add GHA to build lambda docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPeczek-Roboflow committed Jul 11, 2024
1 parent 5c919bf commit b4a0fd4
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker.lambda.core_models.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build CPU Lambda container CORE MODELS

on:
push:
branches: [ main ]
workflow_dispatch:

env:
VERSION: '0.0.0' # Default version, will be overwritten

jobs:
docker:
runs-on:
group: group8core
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: Read version from file
run: echo "VERSION=$(DISABLE_VERSION_CHECK=true python ./inference/core/version.py)" >> $GITHUB_ENV
- name: Build
run:
docker buildx build --platform linux/amd64 -t test-lambda-slim -f docker/dockerfiles/Dockerfile.onnx.lambda .
26 changes: 26 additions & 0 deletions .github/workflows/docker.lambda.slim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build CPU Lambda container SLIM

on:
push:
branches: [ main ]
workflow_dispatch:

env:
VERSION: '0.0.0' # Default version, will be overwritten

jobs:
docker:
runs-on:
group: group8core
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: 🛎️ Checkout
uses: actions/checkout@v3
- name: Read version from file
run: echo "VERSION=$(DISABLE_VERSION_CHECK=true python ./inference/core/version.py)" >> $GITHUB_ENV
- name: Build
run:
docker buildx build --platform linux/amd64 -t test-lambda-slim -f docker/dockerfiles/Dockerfile.onnx.lambda.slim .

0 comments on commit b4a0fd4

Please sign in to comment.