Skip to content

Commit

Permalink
test: remote push
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Nov 23, 2022
1 parent 7b1c6dd commit 2fa13d2
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 3 deletions.
84 changes: 84 additions & 0 deletions .env.test-e
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
##################
# __ __ ___ #
# | | | || | #
# | | | || | #
# | |_| || | #
# | || | #
# | || | #
# |_______||___| #
# #
##################

# These are used by the ui service
# defined in the docker compose stack

# customize the location for the Vela server address
#
# Should match the "VELA_ADDR" value in docker-compose.yml when running locally.
VELA_API=http://localhost:8080

# customize the location where users can review documentation
#
# default: https://go-vela.github.io/docs
# VELA_DOCS_URL=

# customize the location where you want users to provide feedback
#
# default: https://github.com/go-vela/ui/issues/new
# VELA_FEEDBACK_URL=

# customize the number of bytes for size of logs the UI will attempt to render
#
# default: 20000 (2 MB)
# VELA_LOG_BYTES_LIMIT=

# customize the number of concurrent builds for a repo the UI will allow configuring
#
# default: 30
# VELA_MAX_BUILD_LIMIT=

############################################################
# _______ _______ ______ __ __ _______ ______ #
# | || || _ | | | | || || _ | #
# | _____|| ___|| | || | |_| || ___|| | || #
# | |_____ | |___ | |_||_ | || |___ | |_||_ #
# |_____ || ___|| __ || || ___|| __ | #
# _____| || |___ | | | | | | | |___ | | | | #
# |_______||_______||___| |_| |___| |_______||___| |_| #
# #
############################################################

# These are used by the server service
# defined in the docker compose stack

# github web url (only required if using GitHub Enterprise)
#
# default: https://github.com
VELA_SCM_ADDR=https://git.target.com

# github client id from oauth application
VELA_SCM_CLIENT=303cab68a62d2a34ba83

# github client secret from oauth application
VELA_SCM_SECRET=2b8727e477db5bee49cf98ff71198f82d85c2078

# GHE compiler settings
VELA_COMPILER_GITHUB_TOKEN=x
VELA_COMPILER_GITHUB_URL=https://git.target.com
VELA_COMPILER_GITHUB=true

# worker service env vars
EXECUTOR_DRIVER=linux
EXECUTOR_LOG_METHOD='time-chunks'
QUEUE_DRIVER=redis
QUEUE_ADDR='redis://localhost:6379'
VELA_BUILD_LIMIT=1
VELA_BUILD_TIMEOUT=30m
VELA_LOG_LEVEL=trace
VELA_RUNTIME_DRIVER=docker
VELA_RUNTIME_PRIVILEGED_IMAGES='target/vela-docker'
VELA_SERVER_ADDR='http://localhost:8080'
VELA_SERVER_SECRET='zB7mrKDTZqNeNTD8z47yG4DHywspAh'
WORKER_ADDR='http://worker:8081'
WORKER_CHECK_IN=10s
WORKER_SERVER_REGISTRATION_TOKEN= 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NjY5NzU5NjUsImlhdCI6MTY2Njk3NTM2NSwic3ViIjoiIiwidG9rZW5UeXBlIjoiUmVnaXN0cmF0aW9uIn0.nOMZ1oAsYD7vgddPXum15QT6S8OsLQsRGMqRS2kBtJVfjia8qw3ACBIH7kuGMyzMGX1eHnxGV53Kmbcy3neKufnJSqj7Ee4ozjZ8g_hy3UBjimNGEWiM-soyHJetZ_f9l7jyTIHKjAZK87FlS8KGgfwMTwzh2ZJ68feRuAsIzZ42iYZ6_xfB-zz0HVkryMVdXFK5goWIO2fmnV4zE0qu6xnRWUB_L3cBgbQLEnU3eccuG1Se61rbwHza0rIylhyX4DTd4HsFUkEQDqnmB9gSgjKbK-ZKbaf0vUqFOrrxbfsqHnJteLR3mUsuzXelmGDOmkKMf7Oru-6MrzSPwPV2Lg'
5 changes: 2 additions & 3 deletions worker/operate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/go-vela/server/queue"
"github.com/go-vela/types"
"github.com/go-vela/types/library"

"github.com/sirupsen/logrus"

Expand Down Expand Up @@ -153,8 +152,8 @@ func (w *Worker) Operate(ctx context.Context) error {
// executor+build inadvertently canceling other builds)
//nolint:contextcheck // ignore passing context
err = w.Exec(id, &types.BuildPackage{
Build: item.Build,
Secrets: []*library.Secret{},
Build: item.Build,
// Secrets: []*library.Secret{},
Pipeline: item.Pipeline,
Repo: item.Repo,
User: item.User,
Expand Down

0 comments on commit 2fa13d2

Please sign in to comment.