Skip to content

Commit

Permalink
CI: build llm-load-test image on every merge
Browse files Browse the repository at this point in the history
This commit builds a container image with each
code change and stores it in the GH registry.
  • Loading branch information
ccamacho committed Nov 21, 2024
1 parent f99958e commit d3a9b8d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: publish
on: [push]
permissions:
contents: read
packages: write
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Buildah build
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ github.event.repository.name }}
tags: latest ${{ github.sha }}
containerfiles: |
./build/Containerfile
- name: Push To ghcr.io
id: push-to-ghcr
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ${{ env.IMAGE_REGISTRY }}

0 comments on commit d3a9b8d

Please sign in to comment.