Release Action #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Action | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build-binary: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Print env | |
run: | | |
corepack enable | |
echo "go version:" $(go version) | |
echo "node version:" $(node -v) | |
echo "npm version:" $(npm -v) | |
echo "pnpm version:" $(pnpm -v) | |
- name: Bootstrap | |
run: | | |
export PATH=$PATH:$(go env GOPATH)/bin | |
make bootstrap | |
echo "go-bindata version:" $(go-bindata -version) | |
- name: Build frontend assets | |
run: | | |
make build-web | |
export PATH=$PATH:$(go env GOPATH)/bin | |
make build-assets | |
- name: Build all arch binary | |
run: make build-all-arch | |
- name: Upload to Release | |
run: | | |
make pack-arch TAG=${{ github.ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-image: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- linux/amd64 | |
- linux/arm64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and Push | |
uses: docker/build-push-action@v6 | |
with: | |
platforms: ${{ matrix.platform }} | |
push: true | |
tags: xgheaven/homebox:latest | |
context: . |