Add .forgejo/workflows/fluffychat-build.yaml
All checks were successful
Trigger CI Pipeline / dispatch (push) Successful in 2s
All checks were successful
Trigger CI Pipeline / dispatch (push) Successful in 2s
This commit is contained in:
parent
8c238766d1
commit
7135fad18e
1 changed files with 34 additions and 0 deletions
34
.forgejo/workflows/fluffychat-build.yaml
Normal file
34
.forgejo/workflows/fluffychat-build.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Build and Push FluffyChat
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [fluffychat-push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: docker:cli
|
||||||
|
steps:
|
||||||
|
- name: Install git
|
||||||
|
run: apk add --no-cache git
|
||||||
|
|
||||||
|
- name: Checkout FluffyChat
|
||||||
|
run: |
|
||||||
|
REF=${{ github.event.client_payload.ref || 'main' }}
|
||||||
|
git clone --depth 1 --branch "${REF##refs/heads/}" \
|
||||||
|
http://forgejo.tooling.svc.cluster.local:3000/ember/fluffychat.git .
|
||||||
|
|
||||||
|
- name: Build container image
|
||||||
|
run: |
|
||||||
|
SHA=${{ github.event.client_payload.sha || 'latest' }}
|
||||||
|
docker build -t 10.70.69.22:30500/ember/fluffychat:latest \
|
||||||
|
-t 10.70.69.22:30500/ember/fluffychat:${SHA} .
|
||||||
|
|
||||||
|
- name: Push to Zot
|
||||||
|
run: |
|
||||||
|
SHA=${{ github.event.client_payload.sha || 'latest' }}
|
||||||
|
docker push 10.70.69.22:30500/ember/fluffychat:latest
|
||||||
|
docker push 10.70.69.22:30500/ember/fluffychat:${SHA}
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue