Skip to content

Vlan support (#2084) #3542

Vlan support (#2084)

Vlan support (#2084) #3542

name: Release (development)
on:
push:
branches:
- "*"
tags-ignore:
- v*
jobs:
build:
name: Build and upload
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v1
with:
go-version: 1.21
id: go
- name: Checkout code into the Go module directory
uses: actions/checkout@v1
- name: Build binaries
run: |
go generate ./pkg/capacity/...
cd cmds
make
env:
GO111MODULE: on
- name: Collecting files
run: |
scripts/collect.sh ${{ github.workspace }}/archive
- name: Set name of the development build
id: setname
run: |
echo "build=zos:v$(date +%y%m%d.%-H%M%S.0)-dev.flist" >> $GITHUB_OUTPUT
- name: Publish flist (${{ github.sha }})
if: success()
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: publish
user: tf-autobuilder
root: archive
name: zos-${{ github.sha }}.flist
- name: Symlink flist (development)
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: symlink
user: tf-autobuilder
name: zos-${{ github.sha }}.flist
target: ${{ steps.setname.outputs.build }}
- name: Crosslink flist (development)
if: success() && github.ref == 'refs/heads/main'
uses: threefoldtech/publish-flist@master
with:
token: ${{ secrets.HUB_JWT }}
action: crosslink
user: tf-zos
name: zos:development-3:latest.flist
target: tf-autobuilder/${{ steps.setname.outputs.build }}