Auto build Docker images for openweb-ui for KSUL #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker image build for hub.docker.com | |
name: Docker images | |
# Run this Build for all pushes to 'main' or tagged releases. | |
# Also run for PRs to ensure PR doesn't break Docker build process | |
# NOTE: uses "reusable-docker-build.yml" to actually build each of the Docker images. | |
on: | |
push: | |
branches: | |
- ksul-main | |
tags: | |
- 'v**' | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
################################################################### | |
# Build/Push the 'kstatelibraries/open-webui' image. | |
################################################################### | |
gpt: | |
# Ensure this job never runs on forked repos. It's only executed for 'kstatelibraries/open-webui' | |
if: github.repository == 'kstatelibraries/open-webui' | |
uses: kstatelibraries/kstatelibraries/.github/workflows/reusable-docker-build.yml@main | |
with: | |
build_id: gpt | |
image_name: kstatelibraries/ksul-gpt | |
dockerfile_path: ./Dockerfile | |
arch_matrix: "[ 'linux/amd64' ]" | |
secrets: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_ACCESS_TOKEN: ${{ secrets.DOCKER_ACCESS_TOKEN }} |