forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 3
Develop #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Develop #19
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
210db31
Correct quickbook formater
AuraMindNest a1689be
Add docker deploy environment
AuraMindNest 329a771
add cd workflow script
AuraMindNest 9784706
Change some due to the database
AuraMindNest 9a0b2b9
Change workflow health test time delay.
AuraMindNest 9050261
Tidy up the environment vaiables
AuraMindNest 8fc5ef0
Update due to coderabbitai review
AuraMindNest d513a43
add uv.lock
AuraMindNest 1233e59
Update due to the github CI workflow failures
AuraMindNest afd4854
Update due to Scorecard failure.
AuraMindNest 197e90d
Update test.yml
AuraMindNest 2972150
Update code due to the pylint fail.
AuraMindNest 2ab5027
Recover the workflows and remove docker folder for new integration.
AuraMindNest 8240fb8
chore(docs): update OpenAPI schema
AuraMindNest a0b1b24
chore: drop .dockerignore and untrack local weblate helper scripts
AuraMindNest 8909e2a
chore(docs): update OpenAPI schema (settings_test parity)
AuraMindNest fecd134
Update openapi.yaml
AuraMindNest a4a100a
chore: empty commit to retrigger CI
AuraMindNest 44222be
ci(macos): skip brew upgrade to avoid flaky brew link on runners
AuraMindNest 35fb608
ci(api): generate OpenAPI with weblate.settings for git diff parity
AuraMindNest 84caff6
Recover some files.
AuraMindNest fb2b54e
chore: refresh uv.lock
AuraMindNest 3e04517
fix(ci): generate OpenAPI via settings_example + CI DB env
AuraMindNest 298492c
some updates
AuraMindNest be6f8e5
Update
AuraMindNest 526c5f2
fix(ci): satisfy pylint in auto and backup scripts
AuraMindNest a6937aa
fix(ci): align ruff per-file ignores with scripts/** and fix boost se…
AuraMindNest 1444a13
fix(ci): satisfy pylint no-else-return vs ruff TRY300 in boost services
AuraMindNest 8a35e20
fix(ci): Codecov patch informational; OpenAPI summaries for Redocly
AuraMindNest 224fecd
fix(api): satisfy Redocly on webhooks and machinery OpenAPI examples
AuraMindNest 8d4bde8
fix(ci): checkout PR head for API Lint OpenAPI verify
AuraMindNest 402d070
chore(docs): update OpenAPI schema with all VCS backends
AuraMindNest 706dc74
revert(api): restore docs.py, serializers.py, spectacular.py to upstr…
AuraMindNest af10bce
Restore some files.
AuraMindNest 71a97d5
fix(ci): satisfy shellcheck in restore script and sync OpenAPI spec
AuraMindNest 29d1ff5
fix(docs): drop github from VcsEnum in OpenAPI spec to match CI gener…
AuraMindNest 38b5720
Add submodule
AuraMindNest 30f505b
Update
AuraMindNest 0b1756e
Update the docker submodul
AuraMindNest ca09480
Update the weblate-docker
AuraMindNest 505b41d
Update cd.yml
AuraMindNest 59eab51
Fix the Lint packages job error.
AuraMindNest 2cb7b4a
docs: Documentation snippets update
AuraMindNest 643acc9
Run CI tests
AuraMindNest 50241ae
Run CI tests
AuraMindNest 569149d
Update cd.yml
AuraMindNest 21f50f1
Update the weblate-docker submodule for production.
AuraMindNest 4a55af6
Update cd.yaml for production.
AuraMindNest e85fcc0
Update for test due to the coderabbitai review fix of boost-docker.
AuraMindNest ce20bea
Update the weblate-docker
AuraMindNest abee8f8
Update again for production.
AuraMindNest e29c2d4
Update the cd.yaml
AuraMindNest d13f672
Merge pull request #15 from AuraMindNest/feature/docker-deploy
wpak-ai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: CD | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| # Restrict GITHUB_TOKEN to the minimum (Scorecard / OpenSSF); deploy uses SSH secrets, not the token. | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| deploy: | ||
| name: Deploy | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Deploy via SSH | ||
| uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5 | ||
| with: | ||
| host: ${{ secrets.SERVER_HOST }} | ||
| username: ${{ secrets.SERVER_USER }} | ||
| key: ${{ secrets.SERVER_SSH_KEY }} | ||
| port: ${{ secrets.SERVER_PORT || 22 }} | ||
| script: | | ||
| cd /opt/boost-weblate | ||
| git pull --depth=1 origin main | ||
| git submodule update --init --depth=1 weblate-docker | ||
| # Docker build context is .. (repo root); copy submodule ignore to context root | ||
| cp weblate-docker/.dockerignore .dockerignore | ||
| cd weblate-docker | ||
| docker compose down | ||
| docker compose up -d --build | ||
|
|
||
| - name: Health check | ||
| uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5 | ||
| with: | ||
| host: ${{ secrets.SERVER_HOST }} | ||
| username: ${{ secrets.SERVER_USER }} | ||
| key: ${{ secrets.SERVER_SSH_KEY }} | ||
| port: ${{ secrets.SERVER_PORT || 22 }} | ||
| script: | | ||
| sleep 300 | ||
| curl -sf http://localhost:8000/healthz/ | ||
This file contains hidden or 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 file contains hidden or 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 file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| [submodule "scripts/spdx-license-list"] | ||
| path = scripts/spdx-license-list | ||
| url = https://github.com/spdx/license-list-data.git | ||
| [submodule "weblate-docker"] | ||
| path = weblate-docker | ||
| url = https://github.com/CppDigest/weblate-docker.git | ||
| branch = main |
This file contains hidden or 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 file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ coverage: | |
| target: 90 | ||
| patch: | ||
| default: | ||
| informational: true | ||
| target: 100 | ||
| codecov: | ||
| branch: main | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 file contains hidden or 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 file contains hidden or 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 file contains hidden or 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 file contains hidden or 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 file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.