Rename to cover more usecases
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Danny Bessems 2022-12-28 16:43:25 +01:00
parent 7df925ad61
commit e269632125
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ type: kubernetes
name: 'Golang Build' name: 'Golang Build'
environment: environment:
BINARY_VERSION: v0.4.1 BINARY_VERSION: v0.4.2
clone: clone:
disable: true disable: true
@ -12,7 +12,7 @@ steps:
- name: Clone vappproperty-manager source repository - name: Clone vappproperty-manager source repository
image: bv11-cr01.bessems.eu/proxy/alpine/git image: bv11-cr01.bessems.eu/proxy/alpine/git
commands: commands:
- git clone https://code.spamasaurus.com/djpbessems/Go.vAppPropertyManager.git . - git clone https://code.spamasaurus.com/djpbessems/Go.NPP-Prepper.git .
# - git checkout tags/$SKOPEO_VERSION # - git checkout tags/$SKOPEO_VERSION
- git checkout HEAD - git checkout HEAD
when: when:
@ -22,12 +22,12 @@ steps:
image: bv11-cr01.bessems.eu/proxy/library/golang image: bv11-cr01.bessems.eu/proxy/library/golang
commands: commands:
- | - |
go build -o ./bin/vappprop-manager ./cmd/vappprop-manager/main.go go build -o ./bin/npp-prepper ./cmd/npp-prepper/main.go
- | - |
curl \ curl \
--header "Authorization: token $GIT_APIKEY" \ --header "Authorization: token $GIT_APIKEY" \
--upload-file bin/vappprop-manager \ --upload-file bin/npp-prepper \
https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/vappprop-manager/$BINARY_VERSION/vappprop-manager https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/npp-prepper/$BINARY_VERSION/npp-prepper
environment: environment:
GIT_APIKEY: GIT_APIKEY:
from_secret: git_apikey from_secret: git_apikey