mirror of
https://github.com/Damillora/phoebe.git
synced 2025-03-10 22:17:21 +00:00
32 lines
830 B
YAML
32 lines
830 B
YAML
|
name: pull requests - docker image build
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- main
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
strategy:
|
||
|
matrix:
|
||
|
platform: [linux/amd64,linux/arm64]
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- uses: actions/setup-node@v4
|
||
|
with:
|
||
|
node-version: 20
|
||
|
- uses: actions/setup-go@v5
|
||
|
with:
|
||
|
go-version: '1.23'
|
||
|
- name: Run GoReleaser
|
||
|
uses: goreleaser/goreleaser-action@v6
|
||
|
with:
|
||
|
# either 'goreleaser' (default) or 'goreleaser-pro'
|
||
|
distribution: goreleaser
|
||
|
# 'latest', 'nightly', or a semver
|
||
|
version: "~> v2"
|
||
|
args: release --snapshot --clean
|
||
|
- name: Upload assets
|
||
|
uses: actions/upload-artifact@v4
|
||
|
with:
|
||
|
name: phoebe
|
||
|
path: dist/*
|