mirror of
https://github.com/thegeeklab/drone-github-comment.git
synced 2024-11-25 20:20:38 +00:00
build binaries
This commit is contained in:
parent
587f406bf7
commit
3cc933981c
@ -91,7 +91,7 @@ local PipelineBuildBinaries = {
|
|||||||
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
||||||
'mkdir -p release/',
|
'mkdir -p release/',
|
||||||
"cd cmd/drone-github-comment && xgo -ldflags \"-s -w -X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' .",
|
"cd cmd/drone-github-comment && xgo -ldflags \"-s -w -X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' .",
|
||||||
'tree',
|
'ls -la',
|
||||||
'mv /build/* /drone/src/release/',
|
'mv /build/* /drone/src/release/',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -183,7 +183,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
|||||||
settings: {
|
settings: {
|
||||||
auto_tag: true,
|
auto_tag: true,
|
||||||
auto_tag_suffix: arch,
|
auto_tag_suffix: arch,
|
||||||
dockerfile: 'docker/Dockerfile',
|
dockerfile: 'docker/Dockerfile.' + arch,
|
||||||
registry: 'quay.io',
|
registry: 'quay.io',
|
||||||
repo: 'quay.io/thegeeklab/${DRONE_REPO_NAME}',
|
repo: 'quay.io/thegeeklab/${DRONE_REPO_NAME}',
|
||||||
username: { from_secret: 'quay_username' },
|
username: { from_secret: 'quay_username' },
|
||||||
|
10
.drone.yml
10
.drone.yml
@ -69,7 +69,7 @@ steps:
|
|||||||
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
||||||
- mkdir -p release/
|
- mkdir -p release/
|
||||||
- cd cmd/drone-github-comment && xgo -ldflags "-s -w -X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' .
|
- cd cmd/drone-github-comment && xgo -ldflags "-s -w -X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' .
|
||||||
- tree
|
- ls -la
|
||||||
- mv /build/* /drone/src/release/
|
- mv /build/* /drone/src/release/
|
||||||
|
|
||||||
- name: executable
|
- name: executable
|
||||||
@ -155,7 +155,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: amd64
|
auto_tag_suffix: amd64
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile.amd64
|
||||||
password:
|
password:
|
||||||
from_secret: quay_password
|
from_secret: quay_password
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
@ -235,7 +235,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: arm64
|
auto_tag_suffix: arm64
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile.arm64
|
||||||
password:
|
password:
|
||||||
from_secret: quay_password
|
from_secret: quay_password
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
@ -315,7 +315,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: arm
|
auto_tag_suffix: arm
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile.arm
|
||||||
password:
|
password:
|
||||||
from_secret: quay_password
|
from_secret: quay_password
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
@ -435,6 +435,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 647ad7d045ea85060bb354182833731c0c0485344c02805fd282faaa081001d5
|
hmac: 847a87a07a8ac845a12e2ad3c7ec3b6907c54e63b6dc3faf6313b4cc5ca422f2
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user