From 9410b3bcbbb7aba4b790f33bea52a430bf69466c Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Mon, 16 Dec 2024 16:53:01 +0530 Subject: [PATCH 1/2] feat: add multiarch arm64 support in ce docker images (#10582) --- .github/workflows/publish_foss_docker.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_foss_docker.yml b/.github/workflows/publish_foss_docker.yml index d48b82a58..732b22a28 100644 --- a/.github/workflows/publish_foss_docker.yml +++ b/.github/workflows/publish_foss_docker.yml @@ -12,6 +12,7 @@ on: - master tags: - v* +# pull_request: workflow_dispatch: jobs: @@ -40,7 +41,9 @@ jobs: - name: set docker tag run: | - echo "DOCKER_TAG=chatwoot/chatwoot:$GIT_REF-ce" >> $GITHUB_ENV + # Replace forward slashes with hyphens in the ref name + SANITIZED_REF=$(echo "$GIT_REF" | sed 's/\//-/g') + echo "DOCKER_TAG=chatwoot/chatwoot:$SANITIZED_REF-ce" >> $GITHUB_ENV - name: replace docker tag if master if: github.ref_name == 'master' @@ -48,6 +51,7 @@ jobs: echo "DOCKER_TAG=chatwoot/chatwoot:latest-ce" >> $GITHUB_ENV - name: Login to DockerHub + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} @@ -58,6 +62,6 @@ jobs: with: context: . file: docker/Dockerfile - platforms: linux/amd64 - push: true + platforms: linux/amd64, linux/arm64 + push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} tags: ${{ env.DOCKER_TAG }} From e3109dbb22746ebc2668444e2471251f871dcb1d Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Tue, 17 Dec 2024 16:31:55 +0530 Subject: [PATCH 2/2] chore: pin bundler version to 2.5.x in circleci (#10596) --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 459faf1c8..b8a628677 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -74,7 +74,7 @@ jobs: source ~/.rvm/scripts/rvm rvm install "3.3.3" rvm use 3.3.3 --default - gem install bundler + gem install bundler -v 2.5.16 - run: name: Install Application Dependencies