ci: use host-mounted volume for docker build
Build Chatwoot / build (push) Failing after 7s

This commit is contained in:
2026-07-23 19:30:48 +00:00
parent a81e34915c
commit b160c1922a
+12 -7
View File
@@ -9,16 +9,21 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
volumes:
- /tmp/build-cache:/build-cache
steps:
- name: Checkout
run: git clone --depth 1 https://github.com/chatwoot/chatwoot.git /source
- name: Build image
- name: Prepare build context on host
run: |
cd /source
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
- name: Push to registry
run: |
docker tag gitea.lealcyber.com/akadmin/chatwoot:test gitea.lealcyber.com/akadmin/chatwoot:latest
echo "Push skipped until registry auth works"
echo "Ready to push when GITEA_TOKEN secret is set"