Compare commits
4 Commits
d4bbf6a983
..
v0.0.5
| Author | SHA1 | Date | |
|---|---|---|---|
| 41ef83ba34 | |||
| 3d5154a12a | |||
| ec9f7d410f | |||
| 03b3344d8f |
@@ -3,19 +3,17 @@ when:
|
||||
|
||||
steps:
|
||||
- name: package
|
||||
image: golang:1.25
|
||||
image: git.unkin.net/unkin/almalinux9-gobuilder:20260606
|
||||
commands:
|
||||
- apt-get update && apt-get install -y zip
|
||||
- make package VERSION=${CI_COMMIT_TAG}
|
||||
|
||||
- name: upload
|
||||
image: curlimages/curl:latest
|
||||
secrets: [artifactapi_url, artifactapi_repo]
|
||||
image: git.unkin.net/unkin/almalinux9-base:20260606
|
||||
commands:
|
||||
- |
|
||||
VERSION=$(echo ${CI_COMMIT_TAG} | sed 's/^v//')
|
||||
FILE="terraform-provider-artifactapi_${VERSION}_linux_amd64.zip"
|
||||
curl -f -X PUT \
|
||||
"$${ARTIFACTAPI_URL}/api/v2/remotes/$${ARTIFACTAPI_REPO}/files/unkin/artifactapi/$${FILE}" \
|
||||
"https://artifactapi3.k8s.syd1.au.unkin.net/api/v2/remotes/terraform-unkin/files/unkin/artifactapi/$${FILE}" \
|
||||
-H "Content-Type: application/zip" \
|
||||
--data-binary @"$${FILE}"
|
||||
|
||||
@@ -33,7 +33,7 @@ fmt: check-go
|
||||
|
||||
package: build
|
||||
cp $(BINARY) $(BINARY)_v$(INSTALL_VERSION)
|
||||
zip $(ZIP) $(BINARY)_v$(INSTALL_VERSION)
|
||||
python3 -c "import zipfile,sys; z=zipfile.ZipFile(sys.argv[1],'w',zipfile.ZIP_DEFLATED); z.write(sys.argv[2]); z.close()" $(ZIP) $(BINARY)_v$(INSTALL_VERSION)
|
||||
rm $(BINARY)_v$(INSTALL_VERSION)
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user