artifacts/.github/example/chat-with-gpt.yaml
2024-04-27 16:20:35 +08:00

33 lines
806 B
YAML

name: Build & push chat-with-gpt images
on:
schedule:
- cron: "0 0 * * *"
pull_request:
push:
paths:
- 'oci/chat-with-gpt/Dockerfile'
- '.github/workflows/chat-with-gpt.yaml'
workflow_dispatch:
branches:
- main
jobs:
chat-with-gpt:
runs-on: ubuntu-latest
name: build chat-with-gpt image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push chat-with-gpt image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/chat-with-gpt/'
build_file: 'Dockerfile'
image: public/chatwithgpt
tag: latest
cache: true
cache_registry: cache