mirror of https://github.com/0xERR0R/blocky.git
47 lines
904 B
YAML
47 lines
904 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Set up Go 1.14
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.14
|
|
id: go
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: crazy-max/ghaction-docker-buildx@v1
|
|
with:
|
|
version: latest
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Build
|
|
run: make tools build
|
|
|
|
- name: Test
|
|
run: make test
|
|
|
|
- name: Build the Docker image and push
|
|
run: |
|
|
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
|
make docker-buildx-push
|
|
|
|
- name: Build multiarch binaries
|
|
run: make buildMultiArchRelease
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v1.0.0
|
|
with:
|
|
name: blocky_binaries
|
|
path: bin
|