This commit is contained in:
@@ -9,21 +9,17 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
volumes:
|
||||
- /tmp/build-cache:/build-cache
|
||||
steps:
|
||||
- name: Prepare build context on host
|
||||
- name: Prepare source
|
||||
run: |
|
||||
mkdir -p /build-cache/chatwoot
|
||||
git clone --depth 1 https://github.com/chatwoot/chatwoot.git /build-cache/chatwoot
|
||||
git clone --depth 1 https://github.com/chatwoot/chatwoot.git /source
|
||||
ls -la /source/Dockerfile
|
||||
|
||||
- name: Build Docker image
|
||||
- name: Build 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' .
|
||||
cd /source
|
||||
DOCKER_BUILDKIT=0 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
|
||||
- name: Push
|
||||
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"
|
||||
echo "Build complete. Push will be configured later."
|
||||
|
||||
Reference in New Issue
Block a user