fix hide_filters_for_agent hide_unassigned_for_agent hide_all_chats_f… #284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# # | |
# # This action will publish Chatwoot CE docker image. | |
# # This is set to run against merges to develop, master | |
# # and when tags are created. | |
# # | |
name: Publish Chatwoot CE docker images | |
on: | |
push: | |
branches: | |
- develop | |
- uno | |
tags: | |
- v* | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GIT_REF: ${{ github.head_ref || github.ref_name }} # ref_name to get tags/branches | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
# - name: Strip enterprise code | |
# run: | | |
# rm -rf enterprise | |
# rm -rf spec/enterprise | |
# - name: Set Chatwoot edition | |
# run: | | |
# echo -en '\nENV CW_EDITION="ce"' >> docker/Dockerfile | |
- name: set docker tag | |
run: | | |
echo "DOCKER_TAG=clairton/chatwoot:$GIT_REF" >> $GITHUB_ENV | |
echo "DOCKER_ARM_TAG=clairton/chatwoot-arm:$GIT_REF" >> $GITHUB_ENV | |
- name: replace docker tag if master | |
if: github.ref_name == 'master' | |
run: | | |
echo "DOCKER_TAG=clairton/chatwoot:latest" >> $GITHUB_ENV | |
echo "DOCKER_ARM_TAG=clairton/chatwoot-arm:latest" >> $GITHUB_ENV | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# https://github.com/docker/buildx/discussions/1382 cache build | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: docker/Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ env.DOCKER_TAG }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Build and push arm64 | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: docker/Dockerfile | |
platforms: linux/arm64 | |
push: true | |
tags: ${{ env.DOCKER_ARM_TAG }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |