Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Seipel
gitlab-runner
Commits
7be3b65b
Unverified
Commit
7be3b65b
authored
6 years ago
by
Tomasz Maczukin
Browse files
Options
Downloads
Patches
Plain Diff
Move main.go files to cmd subpackages
parent
b9e53794
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+3
-3
3 additions, 3 deletions
Makefile
Makefile.docker.mk
+1
-1
1 addition, 1 deletion
Makefile.docker.mk
cmd/gitlab-runner-helper/main.go
+0
-0
0 additions, 0 deletions
cmd/gitlab-runner-helper/main.go
cmd/gitlab-runner/main.go
+0
-0
0 additions, 0 deletions
cmd/gitlab-runner/main.go
with
4 additions
and
4 deletions
Makefile
+
3
−
3
View file @
7be3b65b
...
@@ -107,14 +107,14 @@ build: $(GOX)
...
@@ -107,14 +107,14 @@ build: $(GOX)
gox
$(
BUILD_PLATFORMS
)
\
gox
$(
BUILD_PLATFORMS
)
\
-ldflags
"
$(
GO_LDFLAGS
)
"
\
-ldflags
"
$(
GO_LDFLAGS
)
"
\
-output
=
"out/binaries/
$(
NAME
)
-{{.OS}}-{{.Arch}}"
\
-output
=
"out/binaries/
$(
NAME
)
-{{.OS}}-{{.Arch}}"
\
$(
PKG
)
$(
PKG
)
/cmd/gitlab-runner
build_simple
:
$(GOPATH_SETUP)
build_simple
:
$(GOPATH_SETUP)
# Building
$(
NAME
)
in
version
$(
VERSION
)
for
current platform
# Building
$(
NAME
)
in
version
$(
VERSION
)
for
current platform
go build
\
go build
\
-ldflags
"
$(
GO_LDFLAGS
)
"
\
-ldflags
"
$(
GO_LDFLAGS
)
"
\
-o
"out/binaries/
$(
NAME
)
"
\
-o
"out/binaries/
$(
NAME
)
"
\
$(
PKG
)
$(
PKG
)
/cmd/gitlab-runner
build_current
:
docker build_simple
build_current
:
docker build_simple
...
@@ -142,7 +142,7 @@ pull_images_for_tests: $(GOPATH_SETUP)
...
@@ -142,7 +142,7 @@ pull_images_for_tests: $(GOPATH_SETUP)
@
go run ./scripts/pull-images-for-tests/main.go
@
go run ./scripts/pull-images-for-tests/main.go
install
:
install
:
go
install
--ldflags
=
"
$(
GO_LDFLAGS
)
"
$(
PKG
)
go
install
--ldflags
=
"
$(
GO_LDFLAGS
)
"
$(
PKG
)
/cmd/gitlab-runner
dockerfiles
:
dockerfiles
:
make
-C
dockerfiles all
make
-C
dockerfiles all
...
...
This diff is collapsed.
Click to expand it.
Makefile.docker.mk
+
1
−
1
View file @
7be3b65b
...
@@ -11,7 +11,7 @@ GO_x86_64_ARCH = amd64
...
@@ -11,7 +11,7 @@ GO_x86_64_ARCH = amd64
GO_arm_ARCH
=
arm
GO_arm_ARCH
=
arm
dockerfiles/build/binaries/gitlab-runner-helper.%
:
$(HELPER_GO_FILES) $(GOX)
dockerfiles/build/binaries/gitlab-runner-helper.%
:
$(HELPER_GO_FILES) $(GOX)
gox
-osarch
=
linux/
$(
GO_
$*
_ARCH
)
-ldflags
"
$(
GO_LDFLAGS
)
"
-output
=
$@
$(
PKG
)
/
apps
/gitlab-runner-helper
gox
-osarch
=
linux/
$(
GO_
$*
_ARCH
)
-ldflags
"
$(
GO_LDFLAGS
)
"
-output
=
$@
$(
PKG
)
/
cmd
/gitlab-runner-helper
out/helper-images/prebuilt-%.tar
:
dockerfiles/build/binaries/gitlab-runner-helper.%
out/helper-images/prebuilt-%.tar
:
dockerfiles/build/binaries/gitlab-runner-helper.%
@
mkdir
-p
$$(
dirname
$@
_
)
@
mkdir
-p
$$(
dirname
$@
_
)
...
...
This diff is collapsed.
Click to expand it.
apps
/gitlab-runner-helper/main.go
→
cmd
/gitlab-runner-helper/main.go
+
0
−
0
View file @
7be3b65b
File moved
This diff is collapsed.
Click to expand it.
main.go
→
cmd/gitlab-runner/
main.go
+
0
−
0
View file @
7be3b65b
File moved
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment