30 lines
906 B
YAML
30 lines
906 B
YAML
name: Build Chatwoot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- leal-cyber
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
volumes:
|
|
- /tmp/build-cache:/build-cache
|
|
steps:
|
|
- name: Prepare build context on host
|
|
run: |
|
|
mkdir -p /build-cache/chatwoot
|
|
git clone --depth 1 https://github.com/chatwoot/chatwoot.git /build-cache/chatwoot
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
cd /build-cache/chatwoot
|
|
docker build -t gitea.lealcyber.com/akadmin/chatwoot:test --build-arg RAILS_ENV=production --build-arg BUNDLE_WITHOUT='development:test:enterprise' .
|
|
|
|
- name: Push to registry
|
|
run: |
|
|
docker tag gitea.lealcyber.com/akadmin/chatwoot:test gitea.lealcyber.com/akadmin/chatwoot:latest
|
|
echo "Ready to push when GITEA_TOKEN secret is set"
|