-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gitlab seems to require a .yml extension (not .yaml). The actual syntax was also quite wrong. And the image golang:1.20 does not need (nor contain 'sudo'). Signed-off-by: Marc Khouzam <[email protected]>
- Loading branch information
1 parent
ee05e1d
commit 10dda4d
Showing
4 changed files
with
22 additions
and
23 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
cmd/plugin/builder/template/plugintemplates/gitlab-ci.yaml.tmpl
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
cmd/plugin/builder/template/plugintemplates/gitlab-ci.yml.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
default: | ||
image: golang:1.20 | ||
|
||
stages: | ||
- build | ||
|
||
build-job: | ||
stage: build | ||
script: | ||
- apt-get update | ||
- apt-get install -y ca-certificates | ||
- echo "deb https://storage.googleapis.com/tanzu-cli-os-packages/apt tanzu-cli-jessie main" | tee /etc/apt/sources.list.d/tanzu.list | ||
- apt-get update --allow-insecure-repositories | ||
- apt-get install -y tanzu-cli --allow-unauthenticated | ||
- tanzu ceip-participation set false | ||
- tanzu version | ||
- tanzu plugin install builder | ||
- make plugin-build-install-local | ||
- make test | ||
- make lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters