Compare commits

...

42 Commits

Author SHA1 Message Date
giles cb9eb16bb7 Merge pull request 'build-tag' (#3) from build-tag into master
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is running Details
Reviewed-on: #3
2023-10-20 10:48:51 +00:00
giles 40efa5fbd3 buidling and deoploying on tag
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
2023-10-20 11:47:01 +01:00
giles 2d04d35025 buidling and deoploying on tag
continuous-integration/drone/push Build encountered an error Details
2023-10-20 11:45:38 +01:00
giles 5ec55ad284 Merge pull request 'separate-database' (#2) from separate-database into master
continuous-integration/drone/push Build is passing Details
Reviewed-on: #2
2023-10-20 10:16:51 +00:00
giles 98bbf1ed70 1.20.5
continuous-integration/drone/push Build is running Details
continuous-integration/drone/pr Build is passing Details
2023-10-19 20:44:11 +01:00
giles 624f5c9ea9 17
continuous-integration/drone/push Build is running Details
2023-10-19 20:42:09 +01:00
giles 90c25b5f9d retry
continuous-integration/drone/push Build is running Details
2023-10-19 20:38:24 +01:00
giles 5bfa1f7f65 retry
continuous-integration/drone/push Build is running Details
2023-10-19 20:35:41 +01:00
giles 48114020c3 retry
continuous-integration/drone/push Build is failing Details
2023-10-19 20:31:40 +01:00
giles 19f51b34fa retry
continuous-integration/drone/push Build is failing Details
2023-10-19 20:29:41 +01:00
giles 37dd57e75a retry
continuous-integration/drone/push Build is failing Details
2023-10-19 20:28:09 +01:00
giles 0e140963aa retry
continuous-integration/drone/push Build is failing Details
2023-10-19 20:25:34 +01:00
giles cd12ee1ace versioned build 2023-10-19 20:21:08 +01:00
giles 87ed972d98 15 2023-10-19 19:49:40 +01:00
giles 3550cefc3e 16 2023-10-19 19:34:20 +01:00
giles a0cb0afea7 15
continuous-integration/drone/push Build is running Details
2023-10-19 19:32:20 +01:00
giles fa2a2b8733 15 2023-10-19 19:28:44 +01:00
giles 2a56e560c9 14
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/promote/build Build is passing Details
continuous-integration/drone/promote/deploy Build is failing Details
2023-10-19 19:23:37 +01:00
giles ef48885fd7 update to v1.13.0
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/promote/build Build is passing Details
continuous-integration/drone/promote/deploy Build is running Details
2023-10-19 19:19:47 +01:00
giles efbed6064b update to v1.13.0
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/promote/build Build is failing Details
2023-10-19 19:16:57 +01:00
giles 16e37774ac missed off env var
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/promote/deploy Build is running Details
2023-10-02 17:54:33 +01:00
giles 52e30b186c added mailer protocol
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/promote/print Build is passing Details
continuous-integration/drone/promote/deploy Build is running Details
2023-10-02 17:31:14 +01:00
Giles Bradshaw 65cc04609b fix: sleep befoore build
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is running Details
2020-11-13 20:59:05 +00:00
Giles Bradshaw 3d19603479 fix: disable user registration
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2020-11-13 20:55:37 +00:00
Giles Bradshaw 8371b415f2 feat: save destination_registry parameter
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
2020-10-24 12:46:46 +01:00
Giles Bradshaw f1dd734924 feat: promotions 2020-10-24 12:46:14 +01:00
Giles Bradshaw 7af5ca6838 feat: work on http 2020-10-22 18:51:04 +01:00
Giles Bradshaw a9fc33bd34 . 2020-10-22 12:21:50 +01:00
Giles Bradshaw 80e1254aa9 .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is running Details
2020-10-22 11:05:43 +01:00
Giles Bradshaw a9ce4ed6a4 .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2020-10-22 10:40:13 +01:00
Giles Bradshaw 15a1cfe964 .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2020-10-22 10:36:02 +01:00
Giles Bradshaw e3816a2972 .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2020-10-22 10:34:14 +01:00
Giles Bradshaw 135ebb725c .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2020-10-22 10:30:14 +01:00
Giles Bradshaw a81a045a1f .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2020-10-22 10:28:10 +01:00
Giles Bradshaw b5a560c7b8 .
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2020-10-22 10:12:30 +01:00
Giles Bradshaw cd080150d3 fix: password in quotes
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
2020-10-06 19:57:08 +01:00
Giles Bradshaw ee30362bf2 chore(release): 0.0.7
continuous-integration/drone/push Build is passing Details
2020-09-25 08:47:23 +01:00
Giles Bradshaw bc4215a548 feat: registry promotion 2020-09-25 08:46:45 +01:00
Giles Bradshaw b5ba37669a chore(release): 0.0.6
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
2020-09-23 08:20:52 +01:00
Giles Bradshaw 19006a61c5 fix: set gitea-domain 2020-09-23 08:20:38 +01:00
Giles Bradshaw b2d9fc3ac1 chore(release): 0.0.5
continuous-integration/drone/push Build is passing Details
2020-08-28 22:11:57 +01:00
Giles Bradshaw 5f7a8880de ci: jsonnet-drone@0.1.0 2020-08-28 22:11:43 +01:00
24 changed files with 507 additions and 34 deletions

View File

@ -1,14 +0,0 @@
load("@this//gitea:drone.star", "drone")
load("@this//gitea:stack-name.star", "stackName")
load("@this//gitea:stack-root.star", "stackRoot")
def main(ctx):
return drone(
ctx,
"home-deploy",
stackRoot,
stackName,
[]
)

5
.drone/build.sh Normal file
View File

@ -0,0 +1,5 @@
sleep 10
docker build gitea \
--build-arg REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \
-t ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/gitea:$1

7
.drone/deploy.sh Normal file
View File

@ -0,0 +1,7 @@
export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \
&& echo $1 \
&& export TAG=$1 \
&& docker stack rm gitea \
&& echo 'sleeping...zzz' \
&& sleep 60 \
&& docker stack deploy -c docker-compose.yml gitea --with-registry-auth

60
.drone/drone-home.jsonnet Normal file
View File

@ -0,0 +1,60 @@
local secretSecrets = import 'lib/secret-secrets.libsonnet';
local publicSecrets = import 'lib/public-secrets.libsonnet';
local deploy = import 'node_modules/@sigyl/jsonnet-drone/deploy.libsonnet';
local register = import 'node_modules/@sigyl/jsonnet-drone/register.libsonnet';
local registry = import 'node_modules/@sigyl/jsonnet-drone/registry.libsonnet';
local save = import 'node_modules/@sigyl/jsonnet-drone/save.libsonnet';
local build = import 'node_modules/@sigyl/jsonnet-drone/build.libsonnet';
local print = import 'node_modules/@sigyl/jsonnet-drone/print.libsonnet';
local config = {
registry: '',
name: 'gitea',
root: 'stack',
};
local defs = [
{
load: 'gitea/gitea:1.12.3-linux-amd64@sha256:38b8222941d8acffb7bb9c3fb0e9e0b657e06815a090f1fb11ed6900a3c9f384',
save: 'gitea/gitea:1.12.3-linux-amd64'
},
];
[
register,
registry(
config {
secrets: [],
images: defs,
},
),
save(config)(
defs,
[
'gitea',
],
),
print(config)(
[],
publicSecrets,
secretSecrets,
),
build(config)(
[],
),
deploy(config)(
[],
publicSecrets,
secretSecrets,
[
'SCHEME',
'DOMAIN',
'REGISTRY_DOMAIN',
'REGISTRY_PORT',
'REGISTRY_PASSWORD',
],
),
]

301
.drone/drone-home.yml Normal file
View File

@ -0,0 +1,301 @@
kind: pipeline
type: docker
name: print
platform:
os: linux
arch: amd64
steps:
- name: print env
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
settings:
envs:
- drone_tag
- drone_commit
- drone_build_number
- drone_repo_name
- drone_repo_namespace
- gitea_mailer_host
- gitea_mailer_from
- gitea_mailer_user
- gitea_app_name
- gitea_server_lfs_jwt_secret
- gitea_security_secret_key
- gitea_security_internal_token
- gitea_oauth2_jwt_secret
- gitea_mailer_passwd
- gitea_mailer_protocol
script:
- rm -f env-gitea
- "echo \"export GITEA_MAILER_HOST='$${GITEA_MAILER_HOST}'\" >> env-gitea # \"gitea-mailer-host\""
- "echo \"export GITEA_MAILER_FROM='$${GITEA_MAILER_FROM}'\" >> env-gitea # \"gitea-mailer-from\""
- "echo \"export GITEA_MAILER_USER='$${GITEA_MAILER_USER}'\" >> env-gitea # \"gitea-mailer-user\""
- "echo \"export GITEA_APP_NAME='$${GITEA_APP_NAME}'\" >> env-gitea # \"gitea-app-name\""
- "echo \"export GITEA_SERVER_LFS_JWT_SECRET='$${GITEA_SERVER_LFS_JWT_SECRET}'\" >> env-gitea # \"gitea-server-lfs-jwt-secret\""
- "echo \"export GITEA_SECURITY_SECRET_KEY='$${GITEA_SECURITY_SECRET_KEY}'\" >> env-gitea # \"gitea-security-secret-key\""
- "echo \"export GITEA_SECURITY_INTERNAL_TOKEN='$${GITEA_SECURITY_INTERNAL_TOKEN}'\" >> env-gitea # \"gitea-security-internal-token\""
- "echo \"export GITEA_OAUTH2_JWT_SECRET='$${GITEA_OAUTH2_JWT_SECRET}'\" >> env-gitea # \"gitea-oauth2-jwt-secret\""
- "echo \"export GITEA_MAILER_PASSWD='$${GITEA_MAILER_PASSWD}'\" >> env-gitea # \"gitea-mailer-passwd\""
- "echo \"export GITEA_MAILER_PROTOCOL='$${GITEA_MAILER_PROTOCOL}'\" >> env-gitea # \"gitea-mailer-protocol\""
environment:
GITEA_APP_NAME:
from_secret: gitea-app-name
GITEA_MAILER_FROM:
from_secret: gitea-mailer-from
GITEA_MAILER_HOST:
from_secret: gitea-mailer-host
GITEA_MAILER_PASSWD:
from_secret: gitea-mailer-passwd
GITEA_MAILER_PROTOCOL:
from_secret: gitea-mailer-protocol
GITEA_MAILER_USER:
from_secret: gitea-mailer-user
GITEA_OAUTH2_JWT_SECRET:
from_secret: gitea-oauth2-jwt-secret
GITEA_SECURITY_INTERNAL_TOKEN:
from_secret: gitea-security-internal-token
GITEA_SECURITY_SECRET_KEY:
from_secret: gitea-security-secret-key
GITEA_SERVER_LFS_JWT_SECRET:
from_secret: gitea-server-lfs-jwt-secret
trigger:
event:
- promote
target:
- print
---
kind: pipeline
type: docker
name: build
platform:
os: linux
arch: amd64
steps:
- name: "build commit"
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
commands:
- set -e
- export NAME=gitea
- export ROOT=stack
- "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n"
- sh .drone/build.sh ${DRONE_COMMIT_SHA}
- sh .drone/push.sh ${DRONE_COMMIT_SHA}
volumes:
- name: dockersock
path: /var/run
when:
branch:
- action
- name: "build tag"
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
commands:
- set -e
- export NAME=gitea
- export ROOT=stack
- "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n"
- sh .drone/build.sh ${DRONE_TAG}
- sh .drone/push.sh ${DRONE_TAG}
volumes:
- name: dockersock
path: /var/run
when:
event:
- tag
services:
- name: docker
image: docker:19.03.12-dind@sha256:8dded163e463f4a59bf305b3dca98e312b2cfb89a43da3872e48f95a7554c48f
privileged: true
volumes:
- name: dockersock
path: /var/run
- name: ca
path: /etc/docker/certs.d
- name: daemonjson
path: /etc/docker/daemon.json
volumes:
- name: dockersock
temp: {}
- name: ca
host:
path: /etc/docker/certs.d
- name: daemonjson
host:
path: /etc/docker/daemon.json
---
kind: pipeline
type: docker
name: deploy
depends_on:
- build
platform:
os: linux
arch: amd64
steps:
- name: scp
image: appleboy/drone-scp:1.6.2@sha256:bd37a55f4b97e7742b0de7333669b96220b3cc422d366e1fa8c34059b736ab47
settings:
command_timeout: 2m
source:
- .
target: /stack/gitea
- name: deploy commit
when:
branch:
- action
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
settings:
envs:
- drone_tag
- drone_commit
- drone_commit_sha
- drone_build_number
- drone_repo_name
- drone_repo_namespace
- scheme
- domain
- registry_domain
- registry_port
- registry_password
- gitea_mailer_host
- gitea_mailer_from
- gitea_mailer_user
- gitea_app_name
- gitea_server_lfs_jwt_secret
- gitea_security_secret_key
- gitea_security_internal_token
- gitea_oauth2_jwt_secret
- gitea_mailer_passwd
- gitea_mailer_protocol
script:
- export GITEA_SERVER_LFS_JWT_SECRET=$${GITEA_SERVER_LFS_JWT_SECRET}
- export GITEA_SECURITY_SECRET_KEY=$${GITEA_SECURITY_SECRET_KEY}
- export GITEA_SECURITY_INTERNAL_TOKEN=$${GITEA_SECURITY_INTERNAL_TOKEN}
- export GITEA_OAUTH2_JWT_SECRET=$${GITEA_OAUTH2_JWT_SECRET}
- export GITEA_MAILER_PASSWD=$${GITEA_MAILER_PASSWD}
- export GITEA_MAILER_PROTOCOL=$${GITEA_MAILER_PROTOCOL}
- export GITEA_MAILER_HOST=$${GITEA_MAILER_HOST}
- export GITEA_MAILER_FROM=$${GITEA_MAILER_FROM}
- export GITEA_MAILER_USER=$${GITEA_MAILER_USER}
- export GITEA_APP_NAME=$${GITEA_APP_NAME}
- export SCHEME=$${SCHEME}
- export DOMAIN=$${DOMAIN}
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
- export REGISTRY_PORT=$${REGISTRY_PORT}
- export REGISTRY_PASSWORD=$${REGISTRY_PASSWORD}
- set -e
- export NAME=gitea
- export ROOT=stack
- cd /stack/gitea
- "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n"
- printenv
- sh .drone/pull.sh ${DRONE_COMMIT_SHA}
- sh .drone/deploy.sh ${DRONE_COMMIT_SHA}
environment:
GITEA_APP_NAME:
from_secret: gitea-app-name
GITEA_MAILER_FROM:
from_secret: gitea-mailer-from
GITEA_MAILER_HOST:
from_secret: gitea-mailer-host
GITEA_MAILER_PASSWD:
from_secret: gitea-mailer-passwd
GITEA_MAILER_PROTOCOL:
from_secret: gitea-mailer-protocol
GITEA_MAILER_USER:
from_secret: gitea-mailer-user
GITEA_OAUTH2_JWT_SECRET:
from_secret: gitea-oauth2-jwt-secret
GITEA_SECURITY_INTERNAL_TOKEN:
from_secret: gitea-security-internal-token
GITEA_SECURITY_SECRET_KEY:
from_secret: gitea-security-secret-key
GITEA_SERVER_LFS_JWT_SECRET:
from_secret: gitea-server-lfs-jwt-secret
- name: deploy tag
when:
event:
- tag
image: appleboy/drone-ssh:1.6.2@sha256:b801dc2cd238c192b6e99acfa7bc3f5b9a03f312bd2feb1e10b3a7a28a1b80ea
settings:
envs:
- drone_tag
- drone_commit
- drone_commit_sha
- drone_build_number
- drone_repo_name
- drone_repo_namespace
- scheme
- domain
- registry_domain
- registry_port
- registry_password
- gitea_mailer_host
- gitea_mailer_from
- gitea_mailer_user
- gitea_app_name
- gitea_server_lfs_jwt_secret
- gitea_security_secret_key
- gitea_security_internal_token
- gitea_oauth2_jwt_secret
- gitea_mailer_passwd
- gitea_mailer_protocol
script:
- export GITEA_SERVER_LFS_JWT_SECRET=$${GITEA_SERVER_LFS_JWT_SECRET}
- export GITEA_SECURITY_SECRET_KEY=$${GITEA_SECURITY_SECRET_KEY}
- export GITEA_SECURITY_INTERNAL_TOKEN=$${GITEA_SECURITY_INTERNAL_TOKEN}
- export GITEA_OAUTH2_JWT_SECRET=$${GITEA_OAUTH2_JWT_SECRET}
- export GITEA_MAILER_PASSWD=$${GITEA_MAILER_PASSWD}
- export GITEA_MAILER_PROTOCOL=$${GITEA_MAILER_PROTOCOL}
- export GITEA_MAILER_HOST=$${GITEA_MAILER_HOST}
- export GITEA_MAILER_FROM=$${GITEA_MAILER_FROM}
- export GITEA_MAILER_USER=$${GITEA_MAILER_USER}
- export GITEA_APP_NAME=$${GITEA_APP_NAME}
- export SCHEME=$${SCHEME}
- export DOMAIN=$${DOMAIN}
- export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN}
- export REGISTRY_PORT=$${REGISTRY_PORT}
- export REGISTRY_PASSWORD=$${REGISTRY_PASSWORD}
- set -e
- export NAME=gitea
- export ROOT=stack
- cd /stack/gitea
- "n=0\nwhile :\ndo\n docker login $${REGISTRY_DOMAIN}:$${REGISTRY_PORT}/ --username client --password \"$${REGISTRY_PASSWORD}\" \\\\\n && break # substitute your command here\n n=$((n+1))\n if [ $n -ge 10 ]; then\n echo \"login failed\"\n exit 1\n fi\n echo \"retrying login..$n\"\n sleep 5\ndone\n"
- printenv
- sh .drone/pull.sh ${DRONE_TAG}
- sh .drone/deploy.sh ${DRONE_TAG}
environment:
GITEA_APP_NAME:
from_secret: gitea-app-name
GITEA_MAILER_FROM:
from_secret: gitea-mailer-from
GITEA_MAILER_HOST:
from_secret: gitea-mailer-host
GITEA_MAILER_PASSWD:
from_secret: gitea-mailer-passwd
GITEA_MAILER_PROTOCOL:
from_secret: gitea-mailer-protocol
GITEA_MAILER_USER:
from_secret: gitea-mailer-user
GITEA_OAUTH2_JWT_SECRET:
from_secret: gitea-oauth2-jwt-secret
GITEA_SECURITY_INTERNAL_TOKEN:
from_secret: gitea-security-internal-token
GITEA_SECURITY_SECRET_KEY:
from_secret: gitea-security-secret-key
GITEA_SERVER_LFS_JWT_SECRET:
from_secret: gitea-server-lfs-jwt-secret
...

View File

@ -0,0 +1,6 @@
[
'gitea-mailer-host',
'gitea-mailer-from',
'gitea-mailer-user',
'gitea-app-name',
]

View File

@ -0,0 +1,7 @@
[
'gitea-server-lfs-jwt-secret',
'gitea-security-secret-key',
'gitea-security-internal-token',
'gitea-oauth2-jwt-secret',
'gitea-mailer-passwd',
]

9
.drone/package.json Normal file
View File

@ -0,0 +1,9 @@
{
"private": true,
"scripts": {
"build": "drone jsonnet --source drone-home.jsonnet --target drone-home.yml --stream"
},
"dependencies": {
"@sigyl/jsonnet-drone": "^1.0.0"
}
}

1
.drone/pull.sh Normal file
View File

@ -0,0 +1 @@
docker pull ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/gitea:$1

1
.drone/push.sh Normal file
View File

@ -0,0 +1 @@
docker push ${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/gitea:$1

51
.drone/yarn-error.log Normal file
View File

@ -0,0 +1,51 @@
Arguments:
/usr/local/Cellar/node/11.9.0/bin/node /usr/local/Cellar/yarn/1.13.0/libexec/bin/yarn.js
PATH:
/Users/giles/.cargo/bin:/Users/giles/.local/bin:/Users/giles/Library/Python/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/usr/local/share/dotnet/sdk:/usr/local/share/dotnet/sdk/2.2.101:/opt/X11/bin:~/.dotnet/tools:/usr/local/bin:/usr/local/Cellar/openssl/1.0.2j/bin/openssl
Yarn version:
1.13.0
Node version:
12.13.1
Platform:
darwin x64
Trace:
SyntaxError: /Users/giles/stack/gitea/.drone/package.json: Unexpected token } in JSON at position 191
at JSON.parse (<anonymous>)
at /usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:1625:59
at Generator.next (<anonymous>)
at step (/usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:304:30)
at /usr/local/Cellar/yarn/1.13.0/libexec/lib/cli.js:315:13
npm manifest:
{
"private": true,
"scripts": {
"build": "drone jsonnet --source drone-home.jsonnet --target drone-home.yml --stream"
},
"dependencies": {
"@sigyl/jsonnet-drone": "^0.0.5",
}
}
yarn manifest:
No manifest
Lockfile:
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@sigyl/jsonnet-compose@^0.0.2":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-compose/-/jsonnet-compose-0.0.2.tgz#8900a21e8cd8109929b6042703f8645aacb9bcda"
integrity sha512-wWS3CgPeNi/o1pcS6n/4pafxlMD0KC9/RKMZr/ySmzeGNRW++sPuKuxajYse2TNd47uNDdeUSnk4aEeEIKL0zA==
"@sigyl/jsonnet-drone-environment@0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-drone-environment/-/jsonnet-drone-environment-0.0.5.tgz#9ea85e08904777bd21a3e4b30b0b91461d0285ff"
integrity sha512-xVGmdMO1pOyozAWUbJm6mzKBgsLPJ+1hWnGCK3AxPkr7kkDh18hu30+TLzlcQtqq76s5jUfvJUztezsGj/mIcw==

21
.drone/yarn.lock Normal file
View File

@ -0,0 +1,21 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@sigyl/jsonnet-compose@^0.0.2":
version "0.0.2"
resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-compose/-/jsonnet-compose-0.0.2.tgz#8900a21e8cd8109929b6042703f8645aacb9bcda"
integrity sha512-wWS3CgPeNi/o1pcS6n/4pafxlMD0KC9/RKMZr/ySmzeGNRW++sPuKuxajYse2TNd47uNDdeUSnk4aEeEIKL0zA==
"@sigyl/jsonnet-drone-environment@0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-drone-environment/-/jsonnet-drone-environment-0.0.5.tgz#9ea85e08904777bd21a3e4b30b0b91461d0285ff"
integrity sha512-xVGmdMO1pOyozAWUbJm6mzKBgsLPJ+1hWnGCK3AxPkr7kkDh18hu30+TLzlcQtqq76s5jUfvJUztezsGj/mIcw==
"@sigyl/jsonnet-drone@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@sigyl/jsonnet-drone/-/jsonnet-drone-1.0.0.tgz#943bd8a1abc8a916026944816709f5ed1d8e7ef8"
integrity sha512-ubyVC1/nAM584wTnnRBZTOP18z28Yy7SRApvSuo/3y2arngKlNI1FwOzKTFt/7L9+rNy19dRO/g0obEkyR3KmA==
dependencies:
"@sigyl/jsonnet-compose" "^0.0.2"
"@sigyl/jsonnet-drone-environment" "0.0.5"

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
.certificates
node_modules node_modules

View File

@ -2,6 +2,24 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [0.0.7](https://sigyl.com///compare/v0.0.6...v0.0.7) "chore(release): 0.0.7" (2020-09-25)
### Features
* registry promotion ([bc4215a](https://sigyl.com///commit/bc4215a548359879bf21dc6d2a76111fac86fbc6))
### [0.0.6](https://sigyl.com///compare/v0.0.5...v0.0.6) "chore(release): 0.0.6" (2020-09-23)
### Bug Fixes
* set gitea-domain ([19006a6](https://sigyl.com///commit/19006a61c5b6646025a2aa5f790494969e7c7ce0))
### [0.0.5](https://sigyl.com///compare/v0.0.3...v0.0.5) "chore(release): 0.0.5" (2020-08-28)
### [0.0.4](https://sigyl.com///compare/v0.0.3...v0.0.4) "chore(release): 0.0.4" (2020-08-19)
### [0.0.3](https://sigyl.com///compare/v0.0.2...v0.0.3) "chore(release): 0.0.3" (2020-08-12) ### [0.0.3](https://sigyl.com///compare/v0.0.2...v0.0.3) "chore(release): 0.0.3" (2020-08-12)

View File

@ -1 +0,0 @@
docker build gitea -t ${LOCAL_DOCKER_REGISTRY}gitea

View File

@ -1,4 +0,0 @@
docker stack rm gitea
echo 'sleeping...zzz'
sleep 60
docker stack deploy -c docker-compose.yml gitea

View File

@ -7,14 +7,14 @@ services:
replicas: 1 replicas: 1
restart_policy: restart_policy:
condition: any condition: any
image: ${LOCAL_DOCKER_REGISTRY}gitea image: ${LOCAL_DOCKER_REGISTRY}gitea:${TAG}
environment: environment:
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
- ROOT_URL=https://${GIT_DOMAIN}/git - SSH_DOMAIN=${DOMAIN}
- SSH_DOMAIN=${GIT_DOMAIN} - SCHEME=${SCHEME}
- GITEA_APP_NAME=${GITEA_APP_NAME} - GITEA_APP_NAME=${GITEA_APP_NAME}
- GIT_DOMAIN=${GIT_DOMAIN} - GITEA_DOMAIN=${DOMAIN}
- GITEA_SERVER_LFS_JWT_SECRET=$GITEA_SERVER_LFS_JWT_SECRET - GITEA_SERVER_LFS_JWT_SECRET=$GITEA_SERVER_LFS_JWT_SECRET
- GITEA_SECURITY_SECRET_KEY=$GITEA_SECURITY_SECRET_KEY - GITEA_SECURITY_SECRET_KEY=$GITEA_SECURITY_SECRET_KEY
- GITEA_SECURITY_INTERNAL_TOKEN=$GITEA_SECURITY_INTERNAL_TOKEN - GITEA_SECURITY_INTERNAL_TOKEN=$GITEA_SECURITY_INTERNAL_TOKEN
@ -23,6 +23,7 @@ services:
- GITEA_MAILER_USER=$GITEA_MAILER_USER - GITEA_MAILER_USER=$GITEA_MAILER_USER
- GITEA_MAILER_FROM=$GITEA_MAILER_FROM - GITEA_MAILER_FROM=$GITEA_MAILER_FROM
- GITEA_MAILER_PASSWD=$GITEA_MAILER_PASSWD - GITEA_MAILER_PASSWD=$GITEA_MAILER_PASSWD
- GITEA_MAILER_PROTOCOL=$GITEA_MAILER_PROTOCOL
volumes: volumes:
- gitea-app:/data - gitea-app:/data

3
git-hooks/pre-commit Executable file
View File

@ -0,0 +1,3 @@
drone jsonnet --source .drone/drone-home.jsonnet --target .drone/drone-home.yml --stream \
&& git add .drone/drone-home.yml \
&& echo "jsonnet built"

View File

@ -1,4 +1,5 @@
FROM gitea/gitea:1.12.3-linux-amd64 ARG REGISTRY
FROM gitea/gitea:1.20.5-linux-amd64
COPY app.ini /init/ COPY app.ini /init/
COPY ./templates /init/templates/ COPY ./templates /init/templates/
COPY run.sh / COPY run.sh /

View File

@ -15,15 +15,15 @@ TEMP_PATH = /data/gitea/uploads
[server] [server]
APP_DATA_PATH = /data/gitea APP_DATA_PATH = /data/gitea
SSH_DOMAIN = ${GIT_DOMAIN} SSH_DOMAIN = ${DOMAIN}
HTTP_PORT = 3000 HTTP_PORT = 3000
ROOT_URL = https://${GIT_DOMAIN}/git/ ROOT_URL = ${SCHEME}://${GITEA_DOMAIN}/git/
DISABLE_SSH = false DISABLE_SSH = false
SSH_PORT = 22 SSH_PORT = 22
SSH_LISTEN_PORT = 22 SSH_LISTEN_PORT = 22
LFS_START_SERVER = true LFS_START_SERVER = true
LFS_CONTENT_PATH = /data/git/lfs LFS_CONTENT_PATH = /data/git/lfs
DOMAIN = ${GIT_DOMAIN} DOMAIN = ${GITEA_DOMAIN}
LFS_JWT_SECRET = ${GITEA_SERVER_LFS_JWT_SECRET} LFS_JWT_SECRET = ${GITEA_SERVER_LFS_JWT_SECRET}
OFFLINE_MODE = false OFFLINE_MODE = false
@ -65,7 +65,7 @@ SECRET_KEY = ${GITEA_SECURITY_SECRET_KEY}
INTERNAL_TOKEN = ${GITEA_SECURITY_INTERNAL_TOKEN} INTERNAL_TOKEN = ${GITEA_SECURITY_INTERNAL_TOKEN}
PASSWORD_COMPLEXITY = off PASSWORD_COMPLEXITY = off
[service] [service]
DISABLE_REGISTRATION = false DISABLE_REGISTRATION = true
REQUIRE_SIGNIN_VIEW = false REQUIRE_SIGNIN_VIEW = false
REGISTER_EMAIL_CONFIRM = true REGISTER_EMAIL_CONFIRM = true
ENABLE_NOTIFY_MAIL = true ENABLE_NOTIFY_MAIL = true
@ -74,7 +74,7 @@ ENABLE_CAPTCHA = false
DEFAULT_KEEP_EMAIL_PRIVATE = false DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.${GIT_DOMAIN} NO_REPLY_ADDRESS = noreply.${GITEA_DOMAIN}
[oauth2] [oauth2]
JWT_SECRET = ${GITEA_OAUTH2_JWT_SECRET} JWT_SECRET = ${GITEA_OAUTH2_JWT_SECRET}

View File

@ -1,5 +1,5 @@
envsubst < /init/app.ini > /data/gitea/conf/app.ini envsubst < /init/app.ini > /data/gitea/conf/app.ini
mkdir /data/gitea/templates mkdir -p /data/gitea/templates
for file in /init/templates/* for file in /init/templates/*
do do
FILENAME=$(basename "$file") FILENAME=$(basename "$file")

View File

@ -3,7 +3,7 @@
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column"> <div class="sixteen wide center aligned centered column">
<div> <div>
<img class="logo" src="{{StaticUrlPrefix}}/img/gitea-lg.png" /> <img class="logo" src="{{AssetUrlPrefix}}/img/gitea-lg.png" />
</div> </div>
<div class="hero"> <div class="hero">
<h1 class="ui icon header title"> <h1 class="ui icon header title">

2
node_modules/.yarn-integrity generated vendored
View File

@ -1,5 +1,5 @@
{ {
"systemParams": "linux-x64-67", "systemParams": "darwin-x64-72",
"modulesFolders": [ "modulesFolders": [
"node_modules" "node_modules"
], ],

View File

@ -1,7 +1,7 @@
{ {
"private": true, "private": true,
"name": "gitea", "name": "gitea",
"version": "0.0.3", "version": "0.0.7",
"description": "gitea", "description": "gitea",
"scripts": { "scripts": {
"build": "sh build.sh", "build": "sh build.sh",