Skip to content

Commit f21d026

Browse files
authored
fix release pipeline license issue (#155)
* test release pipeline without license * add test branch * test with license.txt in parent dir * make path and artifact name the same to make crt happy * fix gh var * keep zip in pkg * fix name and path * remove test branch
1 parent a5babb8 commit f21d026

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.github/workflows/build.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
matrix:
5555
goos: [linux]
5656
goarch: ["arm64", "amd64"]
57-
5857
fail-fast: true
5958

6059
name: Go ${{ matrix.goos }} ${{ matrix.goarch }} build
@@ -69,18 +68,14 @@ jobs:
6968

7069
- name: Build
7170
id: build-binary
72-
env:
73-
GOOS: ${{ matrix.goos }}
74-
GOARCH: ${{ matrix.goarch }}
75-
VERSION: ${{ needs.get-product-version.outputs.product-version }}
7671
run: |
77-
make build
78-
mkdir out
79-
ZIP_FILE="out/${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip"
80-
zip -r "${ZIP_FILE}" LICENSE pkg/extensions
72+
ZIP_FILE="${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip"
73+
74+
make zip
75+
mv pkg/${{ env.PKG_NAME }}.zip pkg/"$ZIP_FILE"
8176
82-
echo "path=${ZIP_FILE}" >> $GITHUB_OUTPUT
83-
echo "name=$(basename ${ZIP_FILE})" >> $GITHUB_OUTPUT
77+
echo "name=${ZIP_FILE}" >> "$GITHUB_OUTPUT"
78+
echo "path=pkg/${ZIP_FILE}" >> "$GITHUB_OUTPUT"
8479
8580
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
8681
with:

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ build: clean
1414
.
1515

1616
zip: build
17-
cd pkg && zip -r vault-lambda-extension.zip extensions/
17+
cp LICENSE pkg/LICENSE.txt
18+
cd pkg && zip -r vault-lambda-extension.zip LICENSE.txt extensions/
1819
@echo "Extension built: pkg/vault-lambda-extension.zip"
1920

2021
lint:

quick-start/terraform/rds.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "aws_db_instance" "main" {
1010
allocated_storage = 20
1111
storage_type = "gp2"
1212
engine = "postgres"
13-
engine_version = "14.7"
13+
engine_version = "14.12"
1414
instance_class = var.db_instance_type
1515
db_name = "lambdadb"
1616
username = "vaultadmin"

0 commit comments

Comments
 (0)