Skip to content

Commit e9ad961

Browse files
authored
Merge pull request #160 from replicatedhq/build-on-actions
Move all to github actions
2 parents 9dbf282 + bd71222 commit e9ad961

33 files changed

+93
-2537
lines changed

.buildkite/pipeline.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- master
5+
push:
6+
branches:
7+
- "master"
8+
tags:
9+
- "v*.*.*"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- uses: actions/setup-go@v1
16+
with:
17+
go-version: "1.12.14"
18+
19+
- name: setup env
20+
run: |
21+
echo "::set-env name=GOPATH::$(go env GOPATH)"
22+
echo "::add-path::$(go env GOPATH)/bin"
23+
shell: bash
24+
25+
- uses: actions/checkout@v2
26+
27+
- run: make
28+
29+
compile-preflight:
30+
runs-on: ubuntu-latest
31+
needs: build
32+
steps:
33+
- uses: actions/setup-go@v1
34+
with:
35+
go-version: '1.12.14'
36+
- name: setup env
37+
run: |
38+
echo "::set-env name=GOPATH::$(go env GOPATH)"
39+
echo "::add-path::$(go env GOPATH)/bin"
40+
shell: bash
41+
- uses: actions/checkout@master
42+
- run: make preflight
43+
- uses: actions/upload-artifact@v1
44+
with:
45+
name: preflight
46+
path: bin/preflight
47+
48+
validate-preflight:
49+
runs-on: ubuntu-latest
50+
needs: compile-preflight
51+
steps:
52+
- name: Download preflight binary
53+
uses: actions/download-artifact@v1
54+
with:
55+
name: preflight
56+
path: bin/
57+
- uses: engineerd/[email protected]
58+
- run: chmod +x bin/preflight
59+
- run: bin/preflight --interactive=false --format=json https://preflight.replicated.com
60+
61+
goreleaser:
62+
runs-on: ubuntu-latest
63+
needs:
64+
- validate-preflight
65+
if: startsWith(github.ref, 'refs/tags/v')
66+
steps:
67+
- name: Checkout
68+
uses: actions/checkout@v2
69+
70+
- name: Unshallow
71+
run: git fetch --prune --unshallow
72+
73+
- uses: actions/setup-go@v1
74+
with:
75+
go-version: "1.12.14"
76+
77+
- name: Run GoReleaser
78+
uses: goreleaser/goreleaser-action@v1
79+
with:
80+
version: latest
81+
args: release --rm-dist --config deploy/.goreleaser.yaml
82+
env:
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/preflight.yaml

Lines changed: 0 additions & 35 deletions
This file was deleted.

cmd/preflight/cli/receive.go

Lines changed: 0 additions & 68 deletions
This file was deleted.

cmd/troubleshoot/cli/receive.go

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)