regisdtration token
continuous-integration/drone/push Build is running
Details
continuous-integration/drone/push Build is running
Details
This commit is contained in:
parent
3ea538ddaa
commit
68c46b7d8e
|
@ -1,7 +1,4 @@
|
|||
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
|
||||
|
|
|
@ -16,6 +16,7 @@ steps:
|
|||
- drone_build_number
|
||||
- drone_repo_name
|
||||
- drone_repo_namespace
|
||||
- runner_registration_token
|
||||
- gitea_mailer_host
|
||||
- gitea_mailer_from
|
||||
- gitea_mailer_user
|
||||
|
@ -32,6 +33,7 @@ steps:
|
|||
- "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 RUNNER_REGISTRATION_TOKEN='$${RUNNER_REGISTRATION_TOKEN}'\" >> env-gitea # \"runner_registration_token\""
|
||||
- "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\""
|
||||
|
@ -59,6 +61,8 @@ steps:
|
|||
from_secret: gitea-security-secret-key
|
||||
GITEA_SERVER_LFS_JWT_SECRET:
|
||||
from_secret: gitea-server-lfs-jwt-secret
|
||||
RUNNER_REGISTRATION_TOKEN:
|
||||
from_secret: runner-registration-token
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
@ -240,6 +244,7 @@ steps:
|
|||
- registry_domain
|
||||
- registry_port
|
||||
- registry_password
|
||||
- runner_registration_token
|
||||
- gitea_mailer_host
|
||||
- gitea_mailer_from
|
||||
- gitea_mailer_user
|
||||
|
@ -251,6 +256,7 @@ steps:
|
|||
- gitea_mailer_passwd
|
||||
- gitea_mailer_protocol
|
||||
script:
|
||||
- export RUNNER_REGISTRATION_TOKEN=$${RUNNER_REGISTRATION_TOKEN}
|
||||
- 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}
|
||||
|
@ -293,5 +299,8 @@ steps:
|
|||
from_secret: gitea-security-secret-key
|
||||
GITEA_SERVER_LFS_JWT_SECRET:
|
||||
from_secret: gitea-server-lfs-jwt-secret
|
||||
RUNNER_REGISTRATION_TOKEN:
|
||||
from_secret: runner-registration-token
|
||||
|
||||
|
||||
...
|
||||
|
|
|
@ -41,6 +41,12 @@ services:
|
|||
image: gitea/act_runner:latest
|
||||
networks:
|
||||
- appnet
|
||||
environment:
|
||||
# - e CONFIG_FILE=/config.yaml \
|
||||
- e GITEA_INSTANCE_URL=https://sigyl.com/git/
|
||||
- e GITEA_RUNNER_REGISTRATION_TOKEN=$RUNNER_REGISTRY_TOKEN
|
||||
- e GITEA_RUNNER_NAME="giles-test"
|
||||
# - e GITEA_RUNNER_LABELS=<runner_labels> \
|
||||
volumes:
|
||||
gitea-app:
|
||||
|
||||
|
|
Loading…
Reference in New Issue