Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
215daf3e
Commit
215daf3e
authored
2 years ago
by
Nathan Bockisch
Browse files
Options
Downloads
Patches
Plain Diff
Added modification to go code to test CI building
parent
afa14f52
No related branches found
No related tags found
No related merge requests found
Pipeline
#4952
failed
2 years ago
Stage: generate-yaml
Stage: trigger
Pipeline: workspaces
#4953
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
apps/cli/executables/go/mod_analyst/main.go
+1
-1
1 addition, 1 deletion
apps/cli/executables/go/mod_analyst/main.go
ci/bin/build-go.sh
+2
-2
2 additions, 2 deletions
ci/bin/build-go.sh
ci/bin/generate-go-yaml.py
+7
-2
7 additions, 2 deletions
ci/bin/generate-go-yaml.py
with
10 additions
and
5 deletions
apps/cli/executables/go/mod_analyst/main.go
+
1
−
1
View file @
215daf3e
...
...
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with Workspaces. If not, see <https://www.gnu.org/licenses/>.
*/
/* TEST */
package
main
import
(
...
...
This diff is collapsed.
Click to expand it.
ci/bin/build-go.sh
+
2
−
2
View file @
215daf3e
#!/bin/
ba
sh
#!/bin/sh
# Copyright (C) 2022 Associated Universities, Inc. Washington DC, USA.
#
# This file is part of NRAO Workspaces.
...
...
@@ -47,5 +47,5 @@ do
# echo "PEX build impossible in $PWD because there is no setup.py file"
# fi
# cd ..
go build
go build
-o
$module
done
This diff is collapsed.
Click to expand it.
ci/bin/generate-go-yaml.py
+
7
−
2
View file @
215daf3e
...
...
@@ -44,9 +44,14 @@ go-{go_name}-build:
image: golang:1.18.0-alpine3.15
variables:
GIT_SUBMODULE_STRATEGY: recursive
before_script:
- apk add git curl
script:
- echo
"
Building module - {go_name}
"
- ./ci/bin/build-go.sh {go_name}
- /builds/ssa/workspaces/ci/bin/build-go.sh {go_name}
- pwd
- ls go/
- ls
- |
curl --header
"
JOB-TOKEN: $CI_JOB_TOKEN
"
--upload-file go/{go_name}
"
$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/{go_name}/0.0.1/{go_name}
"
rules:
...
...
@@ -98,7 +103,7 @@ def main(argv):
deploy_env
=
os
.
environ
[
"
DEPLOY_ENV
"
]
go_changes
=
[]
rule
=
"
$CI_
COMMIT_BRANCH == $CI_DEFAULT_BRANCH
"
rule
=
"
$CI_
MERGE_REQUEST_ID
"
changes_rule
=
""
if
deploy_env
==
"
dev
"
:
...
...
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