Skip to content

no more terraform

no more terraform #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
frontend:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "19.7"
- run: make build-frontend
- uses: actions/upload-artifact@v3
with:
name: frontend
path: frontend/dist
if-no-files-found: error
retention-days: 1
release:
name: Release
runs-on: ubuntu-latest
needs: frontend
steps:
- uses: actions/checkout@v3
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: amd64,arm64,arm
- run: make install-deps
- name: Copy built frontend
uses: actions/download-artifact@v3
with:
name: frontend
path: frontend/dist
- run: go generate ./...
- name: Release
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: creekorful/goreportcard-action@v1.0