This commit is contained in:
@@ -9,16 +9,21 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
volumes:
|
||||||
|
- /tmp/build-cache:/build-cache
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Prepare build context on host
|
||||||
run: git clone --depth 1 https://github.com/chatwoot/chatwoot.git /source
|
|
||||||
|
|
||||||
- name: Build image
|
|
||||||
run: |
|
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' .
|
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: |
|
run: |
|
||||||
docker tag gitea.lealcyber.com/akadmin/chatwoot:test gitea.lealcyber.com/akadmin/chatwoot:latest
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user