Skip to content

optional flag to docker image #14

optional flag to docker image

optional flag to docker image #14

Workflow file for this run

name: GoReleaser
on:
push:
tags:
- '*'
env:
IMAGE_NAME: endpoints
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}