Skip to content

Merge pull request #368 from LlmKira/sudoskys-patch-3 #2

Merge pull request #368 from LlmKira/sudoskys-patch-3

Merge pull request #368 from LlmKira/sudoskys-patch-3 #2

Workflow file for this run

name: Docker Image CI (stable)
on:
workflow_dispatch:
push:
branches:
- main
tags:
- '**'
release:
types: [ published ]
jobs:
build-and-push-image:
if: contains('["sudoskys"]', github.actor)
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: |
sudoskys/llmbot
tags: |
# set latest tag for default branch
type=raw,value=latest
type=ref,event=tag
type=ref,event=branch
flavors: |
latest=auto
suffix=-stable,onlatest=true
- name: echo
run: echo ${{ steps.meta.outputs.json }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ steps.meta.outputs.tags }}
cache-to: type=inline