Skip to content

v0.1.2

v0.1.2 #4

Workflow file for this run

name: Release
on:
release:
types: [created]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: build binaries
run: make release
- name: release binary to GitHub
uses: skx/github-action-publish-binaries@release-2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'bin/release/*'
image:
runs-on: ubuntu-latest
steps:
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: log in to the container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: extract Docker metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels}}