Update .gitlab-ci.yml file

This commit is contained in:
梁俊勇
2022-07-27 15:06:37 +00:00
parent 495583bdf8
commit 103c5d180f

View File

@@ -20,6 +20,8 @@ job_build:
image: golang:latest image: golang:latest
script: script:
- go build -o console-${PACKAGE_VERSION} console.go - go build -o console-${PACKAGE_VERSION} console.go
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${LINUX_AMD64_BINARY} "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}"
artifacts: artifacts:
paths: paths:
- bin - bin
@@ -30,8 +32,7 @@ upload:
script: script:
- ls . - ls .
- ls bin - ls bin
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${LINUX_AMD64_BINARY} "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}"
release: release:
# Caution, as of 2021-02-02 these assets links require a login, see: # Caution, as of 2021-02-02 these assets links require a login, see: