Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build script for runtime extra binaries #503

Merged
merged 52 commits into from
Feb 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
50ac838
Add initial directory hierarchy
maxux Jan 27, 2020
683497a
Add initial directories hierarchy
maxux Jan 27, 2020
34587cb
Add staging first build scripts
maxux Jan 28, 2020
a139f23
Rewrite bin-extra.sh, code more clean
maxux Jan 29, 2020
194b508
Update containerd to 1.3.2 and use new bin-extra features
maxux Jan 29, 2020
7f9d287
Update new files hierarchy
maxux Jan 29, 2020
d7ca22e
Include shared libs and exclude critical one
maxux Jan 29, 2020
63f43be
Improve containerd build script
maxux Jan 29, 2020
18854df
Implement firecracker build script
maxux Jan 29, 2020
4ff5dcb
Add promtail build script
maxux Jan 29, 2020
0d68a56
Update install verbosity message
maxux Jan 29, 2020
80f36f2
Add autobuild scripts
maxux Jan 29, 2020
c07997b
Add missing dependency on autobuild
maxux Jan 29, 2020
05f5c41
Remove non-needed packages .keep file
maxux Jan 29, 2020
c4e3776
Add initial github action for bins-extra
maxux Jan 29, 2020
46da7a2
Disable go and rust from autobuild script
maxux Jan 29, 2020
7dfe735
Fix order of dependency on github action
maxux Jan 29, 2020
420284f
Update bins-extra run workflow
maxux Jan 29, 2020
7e8dad9
Disable test coverage and publish for bins-extra temporarly
maxux Jan 29, 2020
9eac74e
Add some workflow debug
maxux Jan 29, 2020
f503687
Fix path on github workflow
maxux Jan 29, 2020
519bce8
Update bins file permissions
maxux Jan 29, 2020
2cdee5c
Update workflow to use sudo
maxux Jan 29, 2020
df3de53
Fix yaml workflow syntax
maxux Jan 29, 2020
27c5e4c
Fix sudo commands and release path on workflow
maxux Jan 29, 2020
760575c
Force GOPATH if unset
maxux Jan 29, 2020
85dace3
Improve go detection for bins-extra
maxux Jan 29, 2020
7069f28
Reduce bins-extra dependencies list
maxux Jan 29, 2020
85f0ac6
Expose version and name from script to github action
maxux Jan 29, 2020
810f212
Add some github debug
maxux Jan 29, 2020
23a1140
Fix set/env debug command
maxux Jan 29, 2020
3a79873
Debug environment variable
maxux Jan 29, 2020
d25d958
Use tricky HOME variable for github
maxux Jan 29, 2020
4c389e0
Add firecracker and promtail workflow
maxux Jan 29, 2020
acf2577
Upload flist to tf-zos-bins.dev user
maxux Jan 29, 2020
467ed23
Add pre-release and release bins-extra workflow
maxux Jan 30, 2020
06c0bb6
Remove autobuild directory
maxux Jan 31, 2020
729830e
Do not rely on host go on bootstrap
maxux Jan 31, 2020
9477e9f
Autoclean git repository before clone
maxux Jan 31, 2020
1915505
Add local dependencies fetching for containerd
maxux Jan 31, 2020
f69ba29
Add local dependencies fetching for promtail
maxux Jan 31, 2020
bbe4a6f
Build firecracker from sources
maxux Jan 31, 2020
2f9cd70
Add basesystem package for default dependencies
maxux Jan 31, 2020
b60c910
Update github action workflow to use basesystem package
maxux Jan 31, 2020
9b9288c
Update containerd build script for with go changes
maxux Jan 31, 2020
e72fb4c
Update dependency step to basesystem
maxux Jan 31, 2020
e9a435c
Update workflow (upload tf-autbuilder then crosslink)
maxux Jan 31, 2020
d4ecf28
Update bin-extra workflow for pre-release and release
maxux Jan 31, 2020
93346da
Update bins README
maxux Jan 31, 2020
c938611
Add specification about Docker for bins README
maxux Jan 31, 2020
3dc95f8
Add staging k3os (not working)
maxux Jan 31, 2020
f4952db
Restore original workflow disabled by 7e8dad9
maxux Feb 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 132 additions & 0 deletions .github/workflows/bins-extra-development.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
name: Runtime packages
on:
push:
branches:
- 'bins-extra'
tags-ignore:
- v*

jobs:
containerd:
name: 'Package: containerd'
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Checkout code into the Go module directory
uses: actions/checkout@v1

- name: Setup basesystem
run: |
cd bins
sudo ./bins-extra.sh --package basesystem

- name: Build package
id: package
run: |
cd bins
sudo ./bins-extra.sh --package containerd

- name: Publish flist (tf-autobuilder, ${{ steps.package.outputs.name }})
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: publish
user: tf-autobuilder
root: bins/releases/containerd
name: ${{ steps.package.outputs.name }}.flist

- name: Crosslink flist (tf-zos-bins.dev)
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: crosslink
user: tf-zos-bins.dev
name: containerd.flist
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist


firecracker:
name: 'Package: firecracker'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup basesystem
run: |
cd bins
sudo ./bins-extra.sh --package basesystem

- name: Build package
id: package
run: |
cd bins
sudo ./bins-extra.sh --package firecracker

- name: Publish flist (tf-autobuilder, ${{ steps.package.outputs.name }})
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: publish
user: tf-autobuilder
root: bins/releases/firecracker
name: ${{ steps.package.outputs.name }}.flist

- name: Crosslink flist (tf-zos-bins.dev)
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: crosslink
user: tf-zos-bins.dev
name: firecracker.flist
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist


promtail:
name: 'Package: promtail'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup basesystem
run: |
cd bins
sudo ./bins-extra.sh --package basesystem

- name: Build package
id: package
run: |
cd bins
sudo ./bins-extra.sh --package promtail

- name: Publish flist (tf-autobuilder, ${{ steps.package.outputs.name }})
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: publish
user: tf-autobuilder
root: bins/releases/promtail
name: ${{ steps.package.outputs.name }}.flist

- name: Crosslink flist (tf-zos-bins.dev)
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: crosslink
user: tf-zos-bins.dev
name: promtail.flist
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist


140 changes: 140 additions & 0 deletions .github/workflows/bins-extra-pre-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: Runtime packages
on:
push:
# Matching on any tags which is not a production release
# Matching:
# - v1.0.0-beta5
# - v1.0.1-rc3
# - v2.1.4-hotfix-87
#
# Ignoring:
# - v1.0.0
# - v1.1.0
# - v2.1.13
tags:
- 'v*-*'

jobs:
containerd:
name: 'Package: containerd'
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Checkout code into the Go module directory
uses: actions/checkout@v1

- name: Setup basesystem
run: |
cd bins
sudo ./bins-extra.sh --package basesystem

- name: Build package
id: package
run: |
cd bins
sudo ./bins-extra.sh --package containerd

- name: Publish flist (tf-autobuilder, ${{ steps.package.outputs.name }})
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: publish
user: tf-autobuilder
root: bins/releases/containerd
name: ${{ steps.package.outputs.name }}.flist

- name: Crosslink flist (tf-zos-bins.test)
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: crosslink
user: tf-zos-bins.test
name: containerd.flist
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist


firecracker:
name: 'Package: firecracker'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup basesystem
run: |
cd bins
sudo ./bins-extra.sh --package basesystem

- name: Build package
id: package
run: |
cd bins
sudo ./bins-extra.sh --package firecracker

- name: Publish flist (tf-autobuilder, ${{ steps.package.outputs.name }})
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: publish
user: tf-autobuilder
root: bins/releases/firecracker
name: ${{ steps.package.outputs.name }}.flist

- name: Crosslink flist (tf-zos-bins.test)
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: crosslink
user: tf-zos-bins.test
name: firecracker.flist
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist


promtail:
name: 'Package: promtail'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup basesystem
run: |
cd bins
sudo ./bins-extra.sh --package basesystem

- name: Build package
id: package
run: |
cd bins
sudo ./bins-extra.sh --package promtail

- name: Publish flist (tf-autobuilder, ${{ steps.package.outputs.name }})
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: publish
user: tf-autobuilder
root: bins/releases/promtail
name: ${{ steps.package.outputs.name }}.flist

- name: crosslink flist (tf-zos-bins.test)
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.hub_jwt }}
action: crosslink
user: tf-zos-bins.test
name: promtail.flist
target: tf-autobuilder/${{ steps.package.outputs.name }}.flist


Loading