Skip to content

reworked config into context (because of way kong works) #19

reworked config into context (because of way kong works)

reworked config into context (because of way kong works) #19

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build and Release Go app
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.1'
- name: Build
run: ./.github/build-all-archs.sh
env:
BUILD_ARCHS: "windows/amd64 darwin/amd64 darwin/arm64 linux/amd64 linux/arm64"
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name != 'pull_request'
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.RELEASE_PAT }} # PAT token to trigger the docker release
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
artifacts: "dist/*"
if: github.event_name != 'pull_request'