ci-pipelines/.forgejo/workflows/fluffychat-build.yaml
ember 148173755b
All checks were successful
Trigger FluffyChat CI Pipeline / dispatch (push) Successful in 5s
Trigger CI Pipeline / dispatch (push) Successful in 6s
Update .forgejo/workflows/fluffychat-build.yaml
2026-03-17 12:19:36 +00:00

38 lines
1.3 KiB
YAML

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: Patch Dockerfile
run: |
sed -i '/rustup component add rust-src/a RUN rustup target add wasm32-unknown-unknown --toolchain nightly-x86_64-unknown-linux-gnu' Dockerfile
sed -i '/prepare-web.sh/i RUN cargo install wasm-bindgen-cli --version 0.2.100' Dockerfile
- 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}