Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Add GoReleaser build GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonBirchall committed Jan 4, 2021
1 parent 6185a0b commit 3d54f26
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and push a new release

on:
push:
tags:
- "*"

jobs:
build:
name: GoReleaser build
runs-on: ubuntu-latest

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/

- name: Set up Go 1.15
uses: actions/setup-go@v2
with:
go-version: 1.15
id: go

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
workdir: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# push_to_registry:
# name: Push image to docker hub
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: Build and push to docker hub
# uses: docker/build-push-action@v1
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
# repository: ministryofjustice/cloud-platform-cli
# tag_with_ref: true

0 comments on commit 3d54f26

Please sign in to comment.