Skip to content

Update pt_BR.yml

Update pt_BR.yml #621

# #
# # 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 for AMD64
on:
push:
branches:
- develop
- master
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
IMAGE_NAME: wkarts/hub
GIT_REF: ${{ github.head_ref || github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Cache Yarn
# uses: actions/cache@v3
# with:
# path: /yarn-cache
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
- name: Make custom changes
run: |
sed -i 's/"name": "Teste"/"name": "πŸ…·πŸ†„πŸ…±"/g' public/manifest.json
sed -i 's/"short_name": "Teste"/"short_name": "πŸ…·πŸ†„πŸ…±"/g' public/manifest.json
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Set up Docker tags
id: docker_tag
run: |
echo "TAGS=${IMAGE_NAME}:${GIT_REF}" >> $GITHUB_ENV
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
echo "LATEST_TAG=${IMAGE_NAME}:latest" >> $GITHUB_ENV
fi
- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push amd64 image
uses: docker/[email protected]
with:
context: .
file: docker/Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ env.TAGS }}
${{ env.LATEST_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max