-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
43 lines (43 loc) · 1.32 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
box:
id: golang:1.8-alpine
cmd: /bin/sh
build:
steps:
- script:
name: build
code: ci/build.sh
push-github:
steps:
- script:
name: restore release tag
code: |
export MY_RELEASE_TAG=$(cat $WERCKER_ROOT/.release_tag) && \
echo "Release tag: ${MY_RELEASE_TAG}" && \
tar zcvf "dron-linux-amd64.tar.gz" "${WERCKER_ROOT}/dron" && \
apk add --update curl jq openssl
- stepanstipl/github-create-release:
token: $GITHUB_TOKEN
tag: $MY_RELEASE_TAG
- stepanstipl/github-upload-asset:
token: $GITHUB_TOKEN
file: dron-linux-amd64.tar.gz
content_type: application/x-gzip
push-quay:
box: canopytax/alpine
steps:
- script:
name: restore release tag
code: |
export MY_RELEASE_TAG="$(cat $WERCKER_ROOT/.release_tag)" && \
echo "Release tag: ${MY_RELEASE_TAG}"
export MY_RELEASE_SHA="$(cat $WERCKER_ROOT/.release_sha)" && \
echo "Release sha: ${MY_RELEASE_SHA}"
- internal/docker-scratch-push:
username: $QUAY_USERNAME
password: $QUAY_TOKEN
disable-sync: false
tag: latest $MY_RELEASE_TAG $MY_RELEASE_SHA
repository: quay.io/stepanstipl/dron
registry: https://quay.io
author: Stepan Stipl
cmd: /dron