Skip to content

Commit

Permalink
add release configuration
Browse files Browse the repository at this point in the history
trigger workflow with tag pushes

remove old from makefile

manually enable option generate release notes
  • Loading branch information
dfangl committed Mar 11, 2022
1 parent 7fd66cd commit 95c4295
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
changelog:
exclude:
labels:
- ignore-for-release
categories:
- title: Changes
labels:
- "*"
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Build

on:
push:
branches: [ localstack-poc ]
branches: [ localstack ]
tags: v*.*
pull_request:
branches: [ localstack-poc ]
branches: [ localstack ]

jobs:

Expand All @@ -25,4 +26,10 @@ jobs:
with:
name: aws-lambda-rie
path: bin/*

- name: Release binaries
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/*
generate_release_notes: true
prerelease: ${{ endsWith(github.ref, '-pre') }}
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,18 @@

BINARY_NAME=aws-lambda-rie
ARCH=x86_64
GO_ARCH_old := amd64
GO_ARCH_x86_64 := amd64
GO_ARCH_arm64 := arm64
DESTINATION_old:= bin/${BINARY_NAME}
DESTINATION_x86_64 := bin/${BINARY_NAME}-x86_64
DESTINATION_arm64 := bin/${BINARY_NAME}-arm64

compile-with-docker-all:
make ARCH=x86_64 compile-with-docker
make ARCH=arm64 compile-with-docker
make ARCH=old compile-with-docker

compile-lambda-linux-all:
make ARCH=x86_64 compile-lambda-linux
make ARCH=arm64 compile-lambda-linux
make ARCH=old compile-lambda-linux

compile-with-docker:
docker run --env GOPROXY=direct -v $(shell pwd):/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.17 make ARCH=${ARCH} compile-lambda-linux
Expand Down

0 comments on commit 95c4295

Please sign in to comment.