Skip to content

refactor: dockerfile (#43) #4

refactor: dockerfile (#43)

refactor: dockerfile (#43) #4

Workflow file for this run

name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
permissions:
packages: write
contents: write
env:
GO_VERSION: "1.20"
jobs:
verification:
name: Verification
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Check licenses
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make license-check
- name: Run verification
run: make check
build_and_push:
needs: verification
name: Build & Push
uses: ./.github/workflows/reusable-build-and-push.yml
with:
image_tag: ${{ github.ref_name }}
push: true
upload: false
main_release:
needs: build_and_push
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Changelog
uses: Bullrich/generate-release-changelog@master
id: Changelog
env:
REPO: ${{ github.repository }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: |
${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false