Skip to content

Merge pull request #132 from tminaorg/limit-desc-to-400-chars #36

Merge pull request #132 from tminaorg/limit-desc-to-400-chars

Merge pull request #132 from tminaorg/limit-desc-to-400-chars #36

Workflow file for this run

name: Docker CI
on:
push:
branches: [ "main" ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
issues: write
steps:
# git
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
# go
- uses: actions/setup-go@v4
with:
go-version: stable
# qemu
- uses: docker/setup-qemu-action@v2
# registry
- uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# go:generate
- name: Generate go code from go:generate comments
run: make install
# snapshot
- name: Snapshot on non-tag
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --snapshot --clean --config goreleaser/develop.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
## go:test
- name: Test units
run: make test