2021-06-04 04:29:57 +08:00
|
|
|
---
|
|
|
|
name: "pre-release"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pre-release:
|
|
|
|
name: "Pre Release"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.16
|
|
|
|
|
|
|
|
- name: "Build & test"
|
|
|
|
run: "make tools release-artifacts"
|
|
|
|
|
|
|
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "latest"
|
|
|
|
prerelease: true
|
|
|
|
title: "Development Build"
|
|
|
|
files: |
|
|
|
|
LICENSE
|
2022-05-18 20:35:51 +08:00
|
|
|
builds/dist/*
|
|
|
|
|
|
|
|
- uses: docker/setup-qemu-action@v1
|
|
|
|
|
|
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
|
|
|
|
|
- uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
username: "${{ secrets.DOCKER_HUB_USER }}"
|
|
|
|
password: "${{ secrets.DOCKER_HUB_TOKEN }}"
|
|
|
|
|
|
|
|
- name: "Build and push docker image"
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
|
|
|
push: true
|
|
|
|
tags: "${{ secrets.DOCKER_REPO }}:latest"
|