feat: add chatwoot_edition variable for CE docker images (#4462)
* chore: add chatwoot_edition variable for CE docker images * fix cw_edition variable * chore: update comment * feat: include cw_edition data in payload to hub * refactor cw_edition to edition
This commit is contained in:
13
.github/workflows/publish_foss_docker.yml
vendored
13
.github/workflows/publish_foss_docker.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
# #
|
# #
|
||||||
# # This action will publish Chatwoot CE docker image.
|
# # This action will publish Chatwoot CE docker image.
|
||||||
# # This is set to run against merges to develop, master
|
# # This is set to run against merges to develop, master
|
||||||
# # when tags are created.
|
# # and when tags are created.
|
||||||
# #
|
# #
|
||||||
|
|
||||||
name: Publish Chatwoot CE docker images
|
name: Publish Chatwoot CE docker images
|
||||||
@@ -20,8 +20,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GIT_REF: ${{ github.head_ref || github.ref_name }} # ref_name to get tags/branches
|
GIT_REF: ${{ github.head_ref || github.ref_name }} # ref_name to get tags/branches
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Checkout
|
||||||
name: Set up QEMU
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
@@ -32,6 +34,10 @@ jobs:
|
|||||||
rm -rf enterprise
|
rm -rf enterprise
|
||||||
rm -rf spec/enterprise
|
rm -rf spec/enterprise
|
||||||
|
|
||||||
|
- name: Set Chatwoot edition
|
||||||
|
run: |
|
||||||
|
echo -en '\nENV CW_EDITION="ce"' >> docker/Dockerfile
|
||||||
|
|
||||||
- name: set docker tag
|
- name: set docker tag
|
||||||
run: |
|
run: |
|
||||||
echo "DOCKER_TAG=chatwoot/chatwoot:$GIT_REF-ce" >> $GITHUB_ENV
|
echo "DOCKER_TAG=chatwoot/chatwoot:$GIT_REF-ce" >> $GITHUB_ENV
|
||||||
@@ -50,6 +56,7 @@ jobs:
|
|||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
|
context: .
|
||||||
file: docker/Dockerfile
|
file: docker/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.DOCKER_TAG }}
|
tags: ${{ env.DOCKER_TAG }}
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ class ChatwootHub
|
|||||||
installation_identifier: installation_identifier,
|
installation_identifier: installation_identifier,
|
||||||
installation_version: Chatwoot.config[:version],
|
installation_version: Chatwoot.config[:version],
|
||||||
installation_host: URI.parse(ENV.fetch('FRONTEND_URL', '')).host,
|
installation_host: URI.parse(ENV.fetch('FRONTEND_URL', '')).host,
|
||||||
installation_env: ENV.fetch('INSTALLATION_ENV', '')
|
installation_env: ENV.fetch('INSTALLATION_ENV', ''),
|
||||||
|
edition: ENV.fetch('CW_EDITION', '')
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user