Skip to content

Commit a41d9ba

Browse files
authored
Merge pull request #4 from ernoaapa/arm-build
Buildkite ARM build
2 parents 117d9b8 + bd941f8 commit a41d9ba

3 files changed

Lines changed: 40 additions & 6 deletions

File tree

.buildkite/pipeline.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
steps:
2+
- label: Go version
3+
command: go version
4+
5+
- label: Docker version
6+
command: docker version
7+
8+
- label: Install tools
9+
command:
10+
- go get -u github.com/linuxkit/linuxkit/src/cmd/linuxkit
11+
- go get -u github.com/estesp/manifest-tool
12+
- go get -u github.com/tcnksm/ghr
13+
# Ensure jq is installed
14+
- echo '{}' | jq '.'
15+
16+
- wait
17+
18+
- label: Build linuxkit package images
19+
branches: "!master !v*" # Only PRs, don't run for tags
20+
command:
21+
- cd pkg
22+
- make forcebuild
23+
24+
- label: Build & push linuxkit package images
25+
branches: "master !v*" # Don't run for tags
26+
command:
27+
- echo $DOCKER_PASS | docker login --username $DOCKER_USER --password-stdin
28+
- cd pkg
29+
- make forcepush

.circleci/config.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,15 @@ workflows:
6868
build_and_test:
6969
jobs:
7070
- test:
71-
# Don't run when branches updates, only when tags get created
7271
filters:
7372
tags:
7473
ignore:
7574
- /.*/
7675

7776
- publish-packages:
78-
# Don't run when branches updates, only when tags get created
7977
filters:
8078
branches:
81-
ignore: /.*/
82-
tags:
83-
only:
84-
- /v.*/
79+
only: master
8580

8681
- publish-linuxkit:
8782
# Don't run when branches updates, only when tags get created

test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package main
2+
3+
import (
4+
"log"
5+
"runtime"
6+
)
7+
8+
func main() {
9+
log.Println(runtime.GOARCH)
10+
}

0 commit comments

Comments
 (0)