0.79.1
This commit is contained in:
Evgeny
2024-09-06 13:42:46 +05:00
committed by GitHub
5 changed files with 31 additions and 60 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

+15 -17
View File
@@ -4,18 +4,14 @@ on:
push:
branches:
- master
- dev
paths:
- .github
- .github/workflows/*
- shared
- src
- Dockerfile
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
name: Build
@@ -29,21 +25,23 @@ jobs:
with:
submodules: recursive
- name: Export variable
- name: Extract Version
run: |
echo "VERSION=$(cat src/package.json | jq -r '.version')" >> $GITHUB_ENV
echo "VERSION=$(jq -r '.version' src/package.json)" | tee -a $GITHUB_ENV
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to the GitHub Container Registry
- if: ${{ github.ref == 'refs/heads/master' }}
name: Login to the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub
- if: ${{ github.ref == 'refs/heads/master' }}
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
@@ -54,8 +52,8 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
${{ env.IMAGE_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ github.repository }}
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest
type=raw,value=${{ env.VERSION }}
@@ -65,13 +63,13 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.ref == 'refs/heads/master' }}
cache-from: type=gha
cache-to: type=gha,mode=max
tags:
${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}
- name: Create Release
- if: ${{ github.ref == 'refs/heads/master' }}
name: Create Release
uses: softprops/action-gh-release@v2
with:
name: ${{ env.VERSION }}
-33
View File
@@ -1,33 +0,0 @@
name: Dry Build
on:
push:
branches:
- dev
paths:
- .github
- shared
- src
- Dockerfile
jobs:
build:
name: Dry Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
+15 -9
View File
@@ -1,18 +1,25 @@
# 📖 [Outline](https://github.com/outline/outline) с русским переводом ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/flameshikari/outline-ru/build.yml) ![asd](https://img.shields.io/github/v/release/flameshikari/outline-ru)
![](.github/assets/opengraph.png)
## Зачем?
# 📚 [Outline](https://github.com/outline/outline) с русским переводом [![Build Status](https://img.shields.io/github/actions/workflow/status/flameshikari/outline-ru/build.yml)](https://github.com/flameshikari/outline-ru/actions) [![Version](https://img.shields.io/github/v/release/flameshikari/outline-ru?style=)](https://github.com/flameshikari/outline-ru/releases/latest)
Поддержка русского языка в [Outline](https://github.com/outline/outline) прекращена в версии [0.71.0](https://github.com/outline/outline/releases/tag/v0.71.0) по [некоторым причинам](https://github.com/outline/outline/discussions/5706), поэтому и существует этот репозиторий с русским переводом.
## ❓ Зачем
## Примечания
Поддержка русского языка в [Outline](https://github.com/outline/outline) прекращена в версии [0.71.0](https://github.com/outline/outline/releases/tag/v0.71.0) по [некоторым причинам](https://github.com/outline/outline/discussions/5706).
За основу взят перевод из [данного коммита](https://github.com/outline/outline/commit/228d1faa9fd3cbb82409d98e1443fed65adc5715), который впоследствии улучшается и переводится здесь. Буду рад помощи в улучшении перевода или сборки; сообщить о некорректном переводе можно [здесь](https://github.com/flameshikari/outline-ru/discussions/8).
## 📝 Примечания
Из доступных архитектур контейнера имеются только `amd64` и `arm64`, потому что мультиплатформерная сборка на GitHub Actions с помощью QEMU очень медленная: остальные архитектуры собираются часами либо вовсе зависают намертво.
За основу взят перевод из [данного коммита](https://github.com/outline/outline/commit/228d1faa9fd3cbb82409d98e1443fed65adc5715), который впоследствии улучшается и переводится здесь.
## Установка
Буду рад помощи в улучшении перевода или сборки; сообщить о некорректном переводе можно [здесь](https://github.com/flameshikari/outline-ru/discussions/8).
Всё делается по [официальной инструкции](https://docs.getoutline.com/s/hosting/doc/docker-7pfeLP5a8t), только в качестве `image` нужно использовать `flameshikari/outline-ru:latest` или `ghcr.io/flameshikari/outline-ru:latest` (вместо `latest` желательно указать версию; доступные смотреть [здесь](https://github.com/flameshikari/outline-ru/tags)) и указать переменную `DEFAULT_LANGUAGE=ru_RU` в [docker.env](https://github.com/outline/outline/blob/main/.env.sample).
Из доступных архитектур контейнера имеются только `amd64` и `arm64`.
## 🐳 Установка
Всё по [официальной инструкции](https://docs.getoutline.com/s/hosting/doc/docker-7pfeLP5a8t), только в качестве `image` нужно использовать `flameshikari/outline-ru:latest` или `ghcr.io/flameshikari/outline-ru:latest`.
Вместо `latest` желательно указать версию; доступные смотреть [здесь](https://github.com/flameshikari/outline-ru/tags).
Также укажите `DEFAULT_LANGUAGE=ru_RU` в [docker.env](https://github.com/outline/outline/blob/main/.env.sample) или в `environments` (в зависимости от вашей конфигурации).
```yaml
...
@@ -30,4 +37,3 @@
...
```
+1 -1
Submodule src updated: ce85b8f94d...a6b9672779