0
0
mirror of https://github.com/thegeeklab/github-releases-notifier.git synced 2024-11-14 18:10:40 +00:00

update changelog

[SKIP CI] debug

[SKIP CI] debug

[SKIP CI] debug
This commit is contained in:
Robert Kaussow 2020-01-15 13:37:10 +01:00
parent b3d29f3f85
commit c3a4dc665c
3 changed files with 9 additions and 22 deletions

View File

@ -87,10 +87,9 @@ def linux(arch):
'image': 'golang:1.12', 'image': 'golang:1.12',
'environment': { 'environment': {
'CGO_ENABLED': '0', 'CGO_ENABLED': '0',
'BUILD_VERSION': '${DRONE_TAG##v}'
}, },
'commands': [ 'commands': [
'[ -z "${BUILD_VERSION}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8}', '[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
'go build -v -ldflags "-X main.Version=$BUILD_VERSION" -a -tags netgo -o release/%s/github-releases-notifier' % arch 'go build -v -ldflags "-X main.Version=$BUILD_VERSION" -a -tags netgo -o release/%s/github-releases-notifier' % arch
], ],
}, },
@ -99,7 +98,6 @@ def linux(arch):
'image': 'golang:1.12', 'image': 'golang:1.12',
'commands': [ 'commands': [
'./release/%s/github-releases-notifier --help' % arch, './release/%s/github-releases-notifier --help' % arch,
'./release/%s/github-releases-notifier --version' % arch
] ]
}, },
{ {
@ -166,11 +164,8 @@ def binaries(arch):
{ {
'name': 'build', 'name': 'build',
'image': 'techknowlogick/xgo:latest', 'image': 'techknowlogick/xgo:latest',
'environment': {
'BUILD_VERSION': '${DRONE_TAG##v}'
},
'commands': [ 'commands': [
'[ -z "${BUILD_VERSION}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8}', '[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
'mkdir -p release/', 'mkdir -p release/',
"xgo -ldflags \"-X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out github-releases-notifier-$BUILD_VERSION .", "xgo -ldflags \"-X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out github-releases-notifier-$BUILD_VERSION .",
'cp /build/* release/', 'cp /build/* release/',
@ -182,7 +177,6 @@ def binaries(arch):
'image': 'alpine', 'image': 'alpine',
'commands': [ 'commands': [
'cd release/ && sha256sum * > sha256sum.txt', 'cd release/ && sha256sum * > sha256sum.txt',
'cat sha256sum.txt'
], ],
}, },
{ {

View File

@ -47,17 +47,15 @@ steps:
- name: build - name: build
image: golang:1.12 image: golang:1.12
commands: commands:
- "[ -z \"${BUILD_VERSION}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8}" - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- go build -v -ldflags "-X main.Version=$BUILD_VERSION" -a -tags netgo -o release/amd64/github-releases-notifier - go build -v -ldflags "-X main.Version=$BUILD_VERSION" -a -tags netgo -o release/amd64/github-releases-notifier
environment: environment:
BUILD_VERSION: ${DRONE_TAG##v}
CGO_ENABLED: 0 CGO_ENABLED: 0
- name: executable - name: executable
image: golang:1.12 image: golang:1.12
commands: commands:
- ./release/amd64/github-releases-notifier --help - ./release/amd64/github-releases-notifier --help
- ./release/amd64/github-releases-notifier --version
- name: dryrun - name: dryrun
image: plugins/docker image: plugins/docker
@ -112,17 +110,15 @@ steps:
- name: build - name: build
image: golang:1.12 image: golang:1.12
commands: commands:
- "[ -z \"${BUILD_VERSION}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8}" - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- go build -v -ldflags "-X main.Version=$BUILD_VERSION" -a -tags netgo -o release/arm64/github-releases-notifier - go build -v -ldflags "-X main.Version=$BUILD_VERSION" -a -tags netgo -o release/arm64/github-releases-notifier
environment: environment:
BUILD_VERSION: ${DRONE_TAG##v}
CGO_ENABLED: 0 CGO_ENABLED: 0
- name: executable - name: executable
image: golang:1.12 image: golang:1.12
commands: commands:
- ./release/arm64/github-releases-notifier --help - ./release/arm64/github-releases-notifier --help
- ./release/arm64/github-releases-notifier --version
- name: dryrun - name: dryrun
image: plugins/docker image: plugins/docker
@ -177,17 +173,15 @@ steps:
- name: build - name: build
image: golang:1.12 image: golang:1.12
commands: commands:
- "[ -z \"${BUILD_VERSION}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8}" - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- go build -v -ldflags "-X main.Version=$BUILD_VERSION" -a -tags netgo -o release/arm/github-releases-notifier - go build -v -ldflags "-X main.Version=$BUILD_VERSION" -a -tags netgo -o release/arm/github-releases-notifier
environment: environment:
BUILD_VERSION: ${DRONE_TAG##v}
CGO_ENABLED: 0 CGO_ENABLED: 0
- name: executable - name: executable
image: golang:1.12 image: golang:1.12
commands: commands:
- ./release/arm/github-releases-notifier --help - ./release/arm/github-releases-notifier --help
- ./release/arm/github-releases-notifier --version
- name: dryrun - name: dryrun
image: plugins/docker image: plugins/docker
@ -242,19 +236,16 @@ steps:
- name: build - name: build
image: techknowlogick/xgo:latest image: techknowlogick/xgo:latest
commands: commands:
- "[ -z \"${BUILD_VERSION}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8}" - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- mkdir -p release/ - mkdir -p release/
- xgo -ldflags "-X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out github-releases-notifier-$BUILD_VERSION . - xgo -ldflags "-X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out github-releases-notifier-$BUILD_VERSION .
- cp /build/* release/ - cp /build/* release/
- ls -lah release/ - ls -lah release/
environment:
BUILD_VERSION: ${DRONE_TAG##v}
- name: checksum - name: checksum
image: alpine image: alpine
commands: commands:
- cd release/ && sha256sum * > sha256sum.txt - cd release/ && sha256sum * > sha256sum.txt
- cat sha256sum.txt
- name: publish - name: publish
image: plugins/github-release image: plugins/github-release
@ -353,6 +344,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: dfd7579768ef56661e69f51498b32a2cedc72869c01876711963f7f9b8d76fc4 hmac: db1cd58f6fe402fec379a32614bbda189901ac1b80e92fa20a552bd69eddff20
... ...

View File

@ -1,6 +1,8 @@
- FEATURE - FEATURE
- add env variable `GITHUB_REPOS` - add env variable `GITHUB_REPOS`
- add env variable `IGNORE_PRE` - add env variable `IGNORE_PRE`
- BUGFIX
- add `required` flag for GitHub token and Slack hook
- INTERNAL - INTERNAL
- provide also binary releases - provide also binary releases
- switch to gomod instead of vendor folder - switch to gomod instead of vendor folder