diff --git a/.github/workflows/beta-ci.yml b/.github/workflows/beta-ci.yml index a67980e1b..946213ff8 100644 --- a/.github/workflows/beta-ci.yml +++ b/.github/workflows/beta-ci.yml @@ -49,5 +49,5 @@ jobs: tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}-${{ steps.get_version.outputs.version }} - platforms: linux/amd64,linux/arm64,linux/arm32v7,linux/arm,linux/386,linux/ppc64le,linux/s390x,windows/amd64,mac/amd64,mac/arm64 + platforms: linux/amd64,linux/arm64 provenance: false diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2a9e670d..a86ab6094 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,7 @@ jobs: context: . file: ./Dockerfile push: true - platforms: linux/amd64,linux/arm64,linux/arm32v7,linux/arm,linux/386,linux/ppc64le,linux/s390x,windows/amd64,mac/amd64,mac/arm64 + platforms: linux/amd64,linux/arm64 provenance: false tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml new file mode 100644 index 000000000..a8f0ce6a7 --- /dev/null +++ b/.github/workflows/translations.yml @@ -0,0 +1,47 @@ +name: Compile Translations + +on: + push: + branches: + - translations + workflow_dispatch: {} + +permissions: + packages: write + +jobs: + compile: + runs-on: ubuntu-latest + steps: + # Checkout the repo and the translations branch + - name: Checkout + uses: actions/checkout@v2 + with: + ref: translations + + # Install dependencies node and npm + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y nodejs npm + + # Install dependencies for frontend + - name: Install dependencies for frontend + run: | + cd frontend + npm install + + # Compile translations + - name: Compile translations + run: | + cd frontend + npm run gettext:compile + + # Commit and push changes + - name: Commit and push changes + run: | + git config --local user.name "GitHub Action" + git config --local user.email "<>" + git add ./src/language/translations.json + git commit -m "Compile translations" + git push origin translations