Skip to content
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

WIP: DCS main into Gitea Main (for diff) #380

Open
wants to merge 1,941 commits into
base: main-gitea
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1941 commits
Select commit Hold shift + click to select a range
420c5a1
Fixes alignmen count on non-Bible books
richmahn Jan 9, 2023
420421f
Fixes missing attributes
richmahn Jan 9, 2023
f4e7356
Updates and fixes
richmahn Jan 9, 2023
60353b5
Fixes release date for branches
richmahn Jan 9, 2023
5c0b0cf
Updates swagger
richmahn Jan 9, 2023
8196090
Adds catalog endpoints
richmahn Jan 26, 2023
1f91c15
Fixes swagger response
richmahn Jan 26, 2023
a6e45e5
Fixes for SB addition
richmahn Feb 19, 2023
f67f0ad
Fixes for SB addition
richmahn Feb 19, 2023
7daf263
Adds modules/dcs/metadata.go
richmahn Feb 19, 2023
b2a235e
Fixes swagger
richmahn Feb 19, 2023
2ac2717
Fixes null pointer exception
richmahn Feb 19, 2023
bb57cc4
Fixes if no valid manifet/metadata file exists
richmahn Feb 19, 2023
9cf6d59
Removes else from if-else
richmahn Feb 19, 2023
c5f9184
Removes code that hides users
richmahn Feb 21, 2023
11f1688
Fixes tC tS manifest package number
richmahn Feb 21, 2023
a1ada96
Fixes nil repo
richmahn Feb 21, 2023
acfa14d
Fixes early version tC manifests
richmahn Feb 21, 2023
6c6175a
Fixes err handling
richmahn Feb 21, 2023
ff98f18
Fixes tC version
richmahn Feb 21, 2023
3402e64
Debugging
richmahn Feb 21, 2023
3b5e33d
Fixes wordwrap in info_icon.tmpl
richmahn Feb 22, 2023
80d1be7
Fixes tC titles
richmahn Feb 22, 2023
fd3ee79
Fixes title for tS tC repos
richmahn Feb 22, 2023
592121e
Fixes title
richmahn Feb 22, 2023
ed7e7bb
Makes structs non-pointers
richmahn Feb 22, 2023
b08deb1
Better handling tS & tC repos
richmahn Feb 22, 2023
27ddb02
Fixes struct
richmahn Feb 22, 2023
fac598c
Adds projects
richmahn Feb 22, 2023
9ddd9fb
Fixes errors
richmahn Feb 23, 2023
e4fc3af
Added params for searching orgs and users
richmahn Feb 23, 2023
c8512a4
Adds filters for subjects and metadata types
richmahn Feb 23, 2023
b6e54c1
Updates swagger
richmahn Feb 23, 2023
ad3434a
Fixes book search
richmahn Feb 23, 2023
8f16b6b
Fixes titles
richmahn Feb 23, 2023
de337dc
Fixes show ingredients to always show unless set
richmahn Feb 26, 2023
41a280f
Removes unneeded swagger response
richmahn Feb 26, 2023
46bce5b
Changes descrption of showIngredients
richmahn Feb 26, 2023
0a10721
Fixes swagger
richmahn Feb 26, 2023
7677ddd
Fixes swagger
richmahn Feb 26, 2023
9e9f1c8
Single field query should allow all metadata types
richmahn Feb 26, 2023
484e2d7
Adds versification for tS bible books
richmahn Feb 27, 2023
5a9d4a0
Uses GetSubjects for users
richmahn Mar 9, 2023
0c24df3
Adds metadata to the repository table for speed
richmahn Mar 11, 2023
570524b
Speeds up UI and API by not loading attributes
richmahn Mar 12, 2023
5dd1a10
Fixes formatting
richmahn Mar 12, 2023
9249cef
Refactoring of Door43Metadata for refs
richmahn May 27, 2023
5cd3764
Merge branch 'root-v1.18-and-main' into root-v1.20-and-main
richmahn Jun 13, 2023
c378d4b
Removes conflict markers
richmahn Jun 14, 2023
f7ef9ef
Fixes swagger
richmahn Jun 14, 2023
28f56f4
Updates .drone.yml
richmahn Jun 14, 2023
13854d6
Updates services/door43metadata/door43metadata.go
richmahn Jun 14, 2023
9c726bc
Fixes release location on s3
richmahn Jun 15, 2023
c260b46
Updates drone AWS S3 targets
richmahn Jun 15, 2023
ee5dfb5
Updates github actions for DCS
richmahn Jun 15, 2023
d1a296b
Fix to repo name in github actions
richmahn Jun 15, 2023
47a632b
Fixes linting
richmahn Jun 15, 2023
9b1f936
Removes git conflict markers
richmahn Jun 16, 2023
e120803
Updates go.mod from make tidy
richmahn Jun 16, 2023
cdee582
Removes DCS customization info
richmahn Jun 16, 2023
ab9d940
Removes includeMetadata
richmahn Jun 20, 2023
8ab580d
Updates swagger to remove inclueMetadata
richmahn Jun 20, 2023
8b0c9e6
removes mentions of searching metadata
richmahn Jun 20, 2023
ca5c88b
Updates manifest.rootless.tmpl for DCS
richmahn Jun 20, 2023
31bfefd
Fixes for icons
richmahn Jun 21, 2023
8eee2c0
Removes old workflow files for DCS
richmahn Jun 21, 2023
4fca912
Fixes formatting
richmahn Jun 21, 2023
5748415
Adds error/info messages for RC manifest checking
richmahn Jun 21, 2023
7f9336a
Properly query for DMs
richmahn Jun 22, 2023
2551991
Fixes more DM functions and UI for DCS
richmahn Jun 22, 2023
b52b3cc
Fixes RSS Feed in repo header template
richmahn Jun 23, 2023
65baa46
Fixes format string for catalog entry
richmahn Jun 23, 2023
3d98a49
Fixes for Catalog properties
richmahn Jun 23, 2023
d1b457e
Fixes error handling of catalog entries
richmahn Jun 23, 2023
4d328dc
Has proper error codes for catalog entries
richmahn Jun 23, 2023
7ace262
Fixes formatting
richmahn Jun 23, 2023
5d64407
Fixes linting
richmahn Jun 24, 2023
21091e8
Updates swagger codes
richmahn Jun 24, 2023
4019bbd
Updates ref in DCS
richmahn Jun 24, 2023
89543dc
Updates errors for catalog
richmahn Jun 24, 2023
0eaf80b
Updates manifest.tmpl
richmahn Jun 24, 2023
d278217
Reverts back to using branch_or_tag_name
richmahn Jun 24, 2023
9518a1f
Fixes if tag does not exist
richmahn Jun 26, 2023
860bb32
Adds default scope for our DCS apps
richmahn Jun 26, 2023
7898e24
Proper type for scope
richmahn Jun 26, 2023
d882336
Proper type for scope
richmahn Jun 26, 2023
357a0bd
Moves default scope to form
richmahn Jun 26, 2023
0ee7845
Merge branch 'root-v1.20-and-main' of github.com:unfoldingWord/dcs in…
richmahn Jun 26, 2023
24c4d39
Moves default scope to form
richmahn Jun 26, 2023
8e6fd55
Moves DCS setting call
richmahn Jun 28, 2023
68d51c9
Fixes settings for DCS
richmahn Jun 28, 2023
4ec808a
Fixes ZipballURL
richmahn Jun 28, 2023
62f62c0
Adds back books to catalog API object
richmahn Jun 28, 2023
984aa8e
Fixes fmt
richmahn Jun 28, 2023
753a07a
Fixes bug in DM and adds debug string
richmahn Jun 28, 2023
d159136
Better handling of finding DMs for latest catalog entries
richmahn Jun 29, 2023
5dc0522
Fixes books in swagger
richmahn Jun 29, 2023
43f54b0
Refactoring of Door43Metadata
richmahn Jul 19, 2023
31c999a
Removes repo_* fields from User class
richmahn Jul 20, 2023
1cc86b1
Adds diff for csv cell diff
richmahn Jul 23, 2023
e4b182b
Fixes Loading Release
richmahn Jul 23, 2023
d82f6dc
Adds using IsRepoMetadata functionality
richmahn Jul 26, 2023
ff347b3
Adds ability to update Door43 Metadata in the UI
richmahn Aug 2, 2023
b673cae
Adds files for Update Door43 Metadata
richmahn Aug 2, 2023
e21f087
Adds Door43 Metadata settings page
richmahn Aug 7, 2023
fbad8a8
Linting and Swagger
richmahn Aug 7, 2023
4c8c8ad
Fix to replace all function
richmahn Aug 7, 2023
a0fab78
Fixes DM update button
richmahn Aug 7, 2023
7d1b209
Moves metadata to its own tab
richmahn Aug 7, 2023
ea37bb2
Fixes ordering of metadata
richmahn Aug 7, 2023
e5c6660
Full update for Metadata
richmahn Aug 15, 2023
735146a
Fixes valid metadata tooltip
richmahn Aug 15, 2023
06d8e96
Cleanup of validation messages
richmahn Aug 15, 2023
c970f45
Adds Load Schemas to Dashboard
richmahn Aug 15, 2023
6644091
Fixes linting
richmahn Aug 16, 2023
15e3d27
Fixes linting
richmahn Aug 17, 2023
aa7d028
Some fixes
richmahn Aug 17, 2023
29ddfe2
Fixes linting
richmahn Aug 17, 2023
345f0dc
Adds info message for failed metadata
richmahn Aug 19, 2023
2eb908c
Fixes linting
richmahn Aug 19, 2023
9161243
Fixes manifest-rootless.tmpl
richmahn Aug 20, 2023
92913fd
Fixes manifest files for docker images
richmahn Aug 20, 2023
66594f3
Fix for localized names
richmahn Aug 20, 2023
9791fd8
Fix to searching subjects
richmahn Aug 21, 2023
7617721
Fixes for listing repos
richmahn Aug 22, 2023
4829f43
Fixes linting
richmahn Aug 23, 2023
d401e7b
Fixes to converters
richmahn Aug 25, 2023
f98e48e
Fixes LoadAttributes
richmahn Aug 25, 2023
7b0c55c
Fixes history issue
richmahn Aug 26, 2023
7111b06
Fixes stage default
richmahn Aug 26, 2023
ee17893
Fixes issue with Catalog not being populated for repo API object
richmahn Aug 29, 2023
4e75d5a
Work on single field endpoint
richmahn Aug 30, 2023
e4cad32
Better list handling for catalog API
richmahn Sep 10, 2023
cfdd7b9
Properly handles all search catalog field functions
richmahn Sep 10, 2023
2f36c99
Updates swagger
richmahn Sep 10, 2023
7d03e11
Adds proper API for catalog
richmahn Sep 16, 2023
5813e9f
Fixes error for user permissions
richmahn Sep 16, 2023
08270cc
Adds languages API
richmahn Sep 16, 2023
91d3ca5
Update home.tmpl - Replace Autographa with Scribe
yakob-aleksandrovich Sep 19, 2023
f32bce4
Merge branch 'root-v1.20-and-main' of github.com:unfoldingWord/dcs in…
richmahn Sep 19, 2023
022760d
Adds langnames API
richmahn Sep 21, 2023
fb50bfb
Fixes fmt
richmahn Sep 21, 2023
816605a
Fixing linting
richmahn Sep 22, 2023
a6abdee
Fixes metadata
richmahn Sep 22, 2023
cdc2661
Merge commit '707c69f399d311aaa11ca62a27293244e85cb043' into root-v1.…
richmahn Sep 22, 2023
0cdf51f
Changes to match upstream
richmahn Sep 22, 2023
ad9a0c5
Changes to match upstream
richmahn Sep 22, 2023
9502cd8
Merge branch 'root-v1.21-and-main' of github.com:unfoldingWord/dcs in…
richmahn Sep 22, 2023
8e8e29f
Merge branch 'root-v1.21-and-main'
richmahn Sep 22, 2023
4078377
Updates nightly docker build workflow
richmahn Sep 22, 2023
c309db3
Comment out nightly builds
richmahn Sep 22, 2023
eb2b3b0
update to navbar links
richmahn Sep 22, 2023
3766660
Merge branch 'root-v1.21-and-main'
richmahn Sep 22, 2023
9ccba5e
Trying on ubuntu-latest
richmahn Sep 22, 2023
e3c96e4
Fixes release ref in nightly workflow
richmahn Sep 22, 2023
5501d2c
Fixes release ref in nightly workflow
richmahn Sep 22, 2023
e2b318e
Merge branch 'root-v1.21-and-main'
richmahn Sep 22, 2023
55be074
Fixes verbage
richmahn Sep 22, 2023
e57f315
Fixes verbage
richmahn Sep 22, 2023
c7535ad
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Sep 22, 2023
8097d01
Fixes verbage
richmahn Sep 22, 2023
f67f5ed
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Sep 22, 2023
da27cfd
Uses the new ListAll option
richmahn Sep 22, 2023
1e665ae
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Sep 22, 2023
18ac2ef
Merge branch 'root-v1.21-and-main'
richmahn Sep 22, 2023
4d37f2a
Fixes DCS images
richmahn Sep 25, 2023
2da233a
Adds dcs assets
richmahn Sep 27, 2023
be77e8b
Merge branch 'root-v1.21-and-main'
richmahn Sep 27, 2023
255459f
Merge remote-tracking branch 'upstream/main'
richmahn Sep 27, 2023
c7cdb85
Changes menu
richmahn Sep 27, 2023
0da5b91
Adds back in the UnpackJSONAttachments
richmahn Sep 28, 2023
a035d3e
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Sep 28, 2023
90691fd
Merge branch 'root-v1.21-and-main'
richmahn Sep 28, 2023
9a20313
Merge remote-tracking branch 'upstream/main'
richmahn Sep 28, 2023
42a8cfe
Updates release notificaiton
richmahn Sep 28, 2023
6cc2aff
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Sep 28, 2023
d42c2cb
Merge branch 'root-v1.21-and-main'
richmahn Sep 28, 2023
b3e909a
Fixes call to UnpackJSONAttachments
richmahn Sep 28, 2023
aa13e2f
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Sep 28, 2023
1de4cd3
Merge branch 'root-v1.21-and-main'
richmahn Sep 28, 2023
dcf8ee8
Fixes call to GetRelease
richmahn Sep 28, 2023
34e4069
Removes teme-gitea-wide-screen.less
richmahn Sep 28, 2023
02ab005
Removed unneeded code
richmahn Sep 30, 2023
c3de74d
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Sep 30, 2023
13b5289
Merge branch 'root-v1.21-and-main'
richmahn Sep 30, 2023
9407bb8
Merge remote-tracking branch 'upstream/main'
richmahn Sep 30, 2023
5a8cfc4
Allows for branches in catalog search
richmahn Sep 30, 2023
6f63bea
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Sep 30, 2023
66b91f0
Merge branch 'root-v1.21-and-main'
richmahn Sep 30, 2023
d869baf
Removes upload to AWS for tag
richmahn Sep 30, 2023
ff787a2
Merge remote-tracking branch 'upstream/main'
richmahn Sep 30, 2023
b4445bc
Fixes for stages
richmahn Sep 30, 2023
a0ab8a6
Merge branch 'root-v1.21-and-main'
richmahn Sep 30, 2023
9ff4822
Adds workflow deploy-release.yml
richmahn Oct 1, 2023
d7983f0
Merge branch 'root-v1.21-and-main'
richmahn Oct 1, 2023
29144a3
Adds release deploy docker image workflow
richmahn Oct 1, 2023
31d3cdb
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Oct 1, 2023
f96557d
Merge remote-tracking branch 'upstream/main'
richmahn Oct 1, 2023
d366a9b
Merge branch 'root-v1.21-and-main'
richmahn Oct 1, 2023
8aa6279
Adds objects to user list responpse
richmahn Oct 2, 2023
9170e6f
Merge remote-tracking branch 'upstream/main'
richmahn Oct 4, 2023
3c180d7
Adds user object to owner list
richmahn Oct 4, 2023
bb28830
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Oct 4, 2023
7addee3
Reverts owner list
richmahn Oct 4, 2023
b0be302
remove stage from user search
richmahn Oct 4, 2023
9a389f2
Updates swagger
richmahn Oct 4, 2023
d21a209
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Oct 4, 2023
02c7890
Merge remote-tracking branch 'upstream/main'
richmahn Oct 4, 2023
095f7ca
Merge branch 'root-v1.21-and-main'
richmahn Oct 4, 2023
d0fe742
Adds back the door43metadata cmd
richmahn Oct 7, 2023
4e86680
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Oct 7, 2023
fb155bb
Updates cmd/door43metadata.go
richmahn Oct 7, 2023
8db6934
Merge remote-tracking branch 'upstream/main'
richmahn Oct 7, 2023
913326a
Fixes scrub to corrispond with updates
richmahn Oct 7, 2023
b724070
Updates Dockerfile for DCS local scripts
richmahn Oct 7, 2023
eaa6711
Adds back rootless builds
richmahn Oct 7, 2023
b10b6bc
Merge branch 'root-v1.21-and-main'
richmahn Oct 8, 2023
b852d8e
Merge remote-tracking branch 'upstream/main'
richmahn Oct 8, 2023
ea1f17d
Comments out nightly-binary
richmahn Oct 8, 2023
72ab4df
Adds proper REF_NAME
richmahn Oct 8, 2023
d7d525f
Adds spam user to admin user filter
richmahn Oct 8, 2023
98250d6
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Oct 8, 2023
8fd53fd
Merge branch 'root-v1.21-and-main'
richmahn Oct 8, 2023
9856352
Fixes apk command
richmahn Oct 8, 2023
ece72dc
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Oct 8, 2023
986fac7
Merge branch 'root-v1.21-and-main'
richmahn Oct 8, 2023
de8abda
Removes custom code
richmahn Oct 8, 2023
23c7838
Updates the Catalog UI page for better CSS and catalog info
richmahn Oct 9, 2023
a8090a4
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Oct 9, 2023
f8f2c37
Fixes avatar and catalog badge
richmahn Oct 9, 2023
382aa91
Adds Spam User api
richmahn Oct 9, 2023
1027b53
Updates swagger for spam users
richmahn Oct 9, 2023
91773dd
Changes PrimaryLanguage to Subject and Language on repo list
richmahn Oct 10, 2023
567866f
Adds Language and Subject to repo list
richmahn Oct 10, 2023
cb47702
Fix for repo lists
richmahn Oct 10, 2023
a93100f
Adds link titles
richmahn Oct 10, 2023
31a1bd0
Merge branch 'root-v1.21-and-main'
richmahn Oct 19, 2023
5ae1b8b
Merge remote-tracking branch 'upstream/main'
richmahn Oct 19, 2023
5606936
Expose conflict status and files
richmahn Oct 26, 2023
c35aa65
Fixes property name
richmahn Oct 26, 2023
aed77f4
Name change to conflict fields
richmahn Oct 27, 2023
adb6f0d
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Oct 27, 2023
aaba650
Merge branch 'root-v1.21-and-main'
richmahn Oct 27, 2023
6a67e44
Merge remote-tracking branch 'upstream/main'
richmahn Oct 27, 2023
6baffbd
Fix for tS
richmahn Nov 1, 2023
7d89bfe
Merge branch 'root-v1.20-and-main' into root-v1.21-and-main
richmahn Nov 1, 2023
3c6d4d3
Merge branch 'root-v1.21-and-main'
richmahn Nov 1, 2023
5157f3c
Fix for catalog_list.tmpl
richmahn Nov 1, 2023
e9048d2
Updates repo_list.tmpl
richmahn Nov 2, 2023
e6abe77
Merge branch 'root-v1.21-and-main'
richmahn Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changelog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The full repository name
repo: go-gitea/gitea
repo: unfolding/dcs

# Service type (gitea or github)
service: github
Expand Down
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
templates/custom/footer.tmpl

4 changes: 2 additions & 2 deletions .github/workflows/cron-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
cron-licenses:
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
if: github.repository == 'unfoldingWord/dcs'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Expand All @@ -25,5 +25,5 @@ jobs:
branch: main
commit: true
commit_message: "[skip ci] Updated licenses and gitignores"
remote: "git@github.com:go-gitea/gitea.git"
remote: "git@github.com:unfoldingWord/dcs.git"
ssh_key: ${{ secrets.DEPLOY_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/cron-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
jobs:
action:
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
if: github.repository == 'unfoldingWord/dcs'
steps:
- uses: dessant/lock-threads@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cron-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
crowdin-pull:
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
if: github.repository == 'unfoldingWord/dcs'
steps:
- uses: actions/checkout@v4
- name: download from crowdin
Expand All @@ -29,11 +29,11 @@ jobs:
branch: main
commit: true
commit_message: "[skip ci] Updated translations via Crowdin"
remote: "git@github.com:go-gitea/gitea.git"
remote: "git@github.com:unfoldingWord/dcs.git"
ssh_key: ${{ secrets.DEPLOY_KEY }}
crowdin-push:
runs-on: ubuntu-latest
if: github.repository == 'go-gitea/gitea'
if: github.repository == 'unfoldingWord/dcs'
steps:
- uses: actions/checkout@v4
- name: push translations to crowdin
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: deploy-official-release-rootless

on:
push:
tags: [ v**-dcs ]

jobs:
release-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
- run: git fetch --unshallow --quiet --tags --force
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- name: Docker meta - create docker tags
id: meta
uses: docker/metadata-action@v5
with:
images: |
unfoldingword/dcs
tags: |
type=match,pattern=v(\d+),group=1
type=match,pattern=v(\d+.\d+),group=1
type=match,pattern=v(\d+.\d+.\d+),group=1
type=match,pattern=v(.*)-dcs,group=1
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build rootful docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# - name: build rootless docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# push: true
# file: Dockerfile.rootless
# tags: unfoldingword/dcs:${{ steps.clean_name.outputs.branch }}-rootless
4 changes: 2 additions & 2 deletions .github/workflows/pull-docker-dryrun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: docker/build-push-action@v4
with:
push: false
tags: gitea/gitea:linux-amd64
tags: unfoldingword/dcs:linux-amd64

rootless:
if: needs.files-changed.outputs.docker == 'true' || needs.files-changed.outputs.actions == 'true'
Expand All @@ -32,4 +32,4 @@ jobs:
with:
push: false
file: Dockerfile.rootless
tags: gitea/gitea:linux-amd64
tags: unfoldingword/dcs:linux-amd64
214 changes: 127 additions & 87 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: release-nightly

on:
push:
branches: [ main, release/v* ]
branches: [ main, release/dcs/v* ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -11,52 +11,52 @@ concurrency:
jobs:
disk-clean:
uses: ./.github/workflows/disk-clean.yml
nightly-binary:
runs-on: nscloud
steps:
- uses: actions/checkout@v4
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
- run: git fetch --unshallow --quiet --tags --force
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- uses: actions/setup-node@v3
with:
node-version: 20
- run: make deps-frontend deps-backend
# xgo build
- run: make release
env:
TAGS: bindata sqlite sqlite_unlock_notify
- name: import gpg key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
- name: sign binaries
run: |
for f in dist/release/*; do
echo '${{ secrets.GPGSIGN_PASSPHRASE }}' | gpg --pinentry-mode loopback --passphrase-fd 0 --batch --yes --detach-sign -u ${{ steps.import_gpg.outputs.fingerprint }} --output "$f.asc" "$f"
done
# clean branch name to get the folder name in S3
- name: Get cleaned branch name
id: clean_name
run: |
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
echo "Cleaned name is ${REF_NAME}"
echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
- name: configure aws
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: upload binaries to s3
run: |
aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
# nightly-binary:
# runs-on: nscloud
# steps:
# - uses: actions/checkout@v4
# # fetch all commits instead of only the last as some branches are long lived and could have many between versions
# # fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
# - run: git fetch --unshallow --quiet --tags --force
# - uses: actions/setup-go@v4
# with:
# go-version-file: go.mod
# check-latest: true
# - uses: actions/setup-node@v3
# with:
# node-version: 20
# - run: make deps-frontend deps-backend
# # xgo build
# - run: make release
# env:
# TAGS: bindata sqlite sqlite_unlock_notify
# - name: import gpg key
# id: import_gpg
# uses: crazy-max/ghaction-import-gpg@v5
# with:
# gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
# passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
# - name: sign binaries
# run: |
# for f in dist/release/*; do
# echo '${{ secrets.GPGSIGN_PASSPHRASE }}' | gpg --pinentry-mode loopback --passphrase-fd 0 --batch --yes --detach-sign -u ${{ steps.import_gpg.outputs.fingerprint }} --output "$f.asc" "$f"
# done
# # clean branch name to get the folder name in S3
# - name: Get cleaned branch name
# id: clean_name
# run: |
# REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
# echo "Cleaned name is ${REF_NAME}"
# echo "branch=${REF_NAME}" >> "$GITHUB_OUTPUT"
# - name: configure aws
# uses: aws-actions/configure-aws-credentials@v4
# with:
# aws-region: ${{ secrets.AWS_REGION }}
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# - name: upload binaries to s3
# run: |
# aws s3 sync dist/release s3://${{ secrets.AWS_S3_BUCKET }}/gitea/${{ steps.clean_name.outputs.branch }} --no-progress
nightly-docker-rootful:
runs-on: ubuntu-latest
steps:
Expand All @@ -78,7 +78,7 @@ jobs:
echo "branch=nightly" >> "$GITHUB_OUTPUT"
exit 0
fi
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/dcs\/v//' -e 's/-dcs$//')
echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT"
- name: Login to Docker Hub
uses: docker/login-action@v2
Expand All @@ -93,42 +93,82 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}
nightly-docker-rootless:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
- run: git fetch --unshallow --quiet --tags --force
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- name: Get cleaned branch name
id: clean_name
run: |
# if main then say nightly otherwise cleanup name
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
echo "branch=nightly" >> "$GITHUB_OUTPUT"
exit 0
fi
REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT"
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: fetch go modules
run: make vendor
- name: build rootless docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: Dockerfile.rootless
tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
tags: unfoldingword/dcs:${{ steps.clean_name.outputs.branch }}
# nightly-docker-rootless:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# # fetch all commits instead of only the last as some branches are long lived and could have many between versions
# # fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
# - run: git fetch --unshallow --quiet --tags --force
# - uses: actions/setup-go@v4
# with:
# go-version: "~1.21"
# check-latest: true
# - uses: docker/setup-qemu-action@v2
# - uses: docker/setup-buildx-action@v2
# - name: Get cleaned branch name
# id: clean_name
# run: |
# # if main then say nightly otherwise cleanup name
# if [ "${{ github.ref }}" = "refs/heads/main" ]; then
# echo "branch=nightly" >> "$GITHUB_OUTPUT"
# exit 0
# fi
# REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
# echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT"
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: fetch go modules
# run: make vendor
# - name: build rootless docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# push: true
# file: Dockerfile.rootless
# tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
# =======
# tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}
# nightly-docker-rootless:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# # fetch all commits instead of only the last as some branches are long lived and could have many between versions
# # fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
# - run: git fetch --unshallow --quiet --tags --force
# - uses: actions/setup-go@v4
# with:
# go-version-file: go.mod
# check-latest: true
# - uses: docker/setup-qemu-action@v2
# - uses: docker/setup-buildx-action@v2
# - name: Get cleaned branch name
# id: clean_name
# run: |
# # if main then say nightly otherwise cleanup name
# if [ "${{ github.ref }}" = "refs/heads/main" ]; then
# echo "branch=nightly" >> "$GITHUB_OUTPUT"
# exit 0
# fi
# REF_NAME=$(echo "${{ github.ref }}" | sed -e 's/refs\/heads\///' -e 's/refs\/tags\///' -e 's/release\/v//')
# echo "branch=${REF_NAME}-nightly" >> "$GITHUB_OUTPUT"
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: fetch go modules
# run: make vendor
# - name: build rootless docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# platforms: linux/amd64,linux/arm64
# push: true
# file: Dockerfile.rootless
# tags: gitea/gitea:${{ steps.clean_name.outputs.branch }}-rootless
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ cpu.out
/dist
/custom/*
!/custom/conf/app.example.ini
!/custom/bin
/data
/data-*
/indexers
/log
/public/img/avatar
Expand Down Expand Up @@ -110,3 +112,9 @@ prime/

# Manpage
/man

# Docker compose
/mysql
/data-main
/data-release
.history
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}

ARG GITEA_VERSION
ARG TAGS="sqlite sqlite_unlock_notify"
ARG TAGS="sqlite sqlite_unlock_notify sqlite_json"
ENV TAGS "bindata timetzdata $TAGS"
ARG CGO_EXTRA_CFLAGS

Expand Down Expand Up @@ -41,6 +41,9 @@ RUN apk --no-cache add \
su-exec \
gnupg

#For DCS local scripts
RUN apk --no-cache add jq yq

RUN addgroup \
-S -g 1000 \
git && \
Expand Down
Loading