1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

Few updates in ci jobs and go.mod/dockerfile (#372)

* update go.mod to 1.20
* clean up and format ci jobs
* update go and alpine images in dockerfile

Signed-off-by: cpanato <ctadeu@gmail.com>
This commit is contained in:
Carlos Tadeu Panato Junior
2023-05-30 23:08:07 +02:00
committed by GitHub
parent 87888e9dbf
commit 926f9f3804
5 changed files with 43 additions and 11 deletions

View File

@@ -1,9 +1,13 @@
name: Build and Release
on:
push:
branches: [ "main" ]
tags: [ "v*" ]
branches:
- main
tags:
- 'v*'
pull_request:
jobs:
release:
runs-on: ubuntu-latest
@@ -11,27 +15,33 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: '1.20'
check-latest: true
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'
cache-dependency-path: ui/yarn.lock
- name: Build frontend
run: |
yarn install --frozen-lockfile --non-interactive
yarn run build
working-directory: ./ui
- name: Test build release
uses: goreleaser/goreleaser-action@v4
if: "!startsWith(github.ref, 'refs/tags/v')"
with:
version: latest
args: release --snapshot
- name: Build and publish release
uses: goreleaser/goreleaser-action@v4
if: "startsWith(github.ref, 'refs/tags/v')"