Skip to content

Commit 5526214

Browse files
committed
WIP: dev-pipeline
1 parent 96e3f25 commit 5526214

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/build.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ jobs:
1616
uses: docker/setup-buildx-action@v1
1717

1818
- name: Build EIF
19-
run: make VERSION=${{ github.sha }} eif
19+
run: make VERSION=${{ github.sha }} OUTDIR=${{ github.workspace }}/out eif
20+
21+
- name: Upload EIF
22+
uses: actions/upload-artifact@v4
23+
with:
24+
path: out/waas-auth.${{ github.sha }}.eif
25+
if-no-files-found: error

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CONFIG ?= $(TOP)/etc/waas-auth.conf
22
ENV ?= prod
33

44
TOP := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
5+
OUTDIR ?= $(TOP)/bin
56
SHELL = bash -o pipefail
67
TEST_FLAGS ?= -v
78

@@ -59,7 +60,7 @@ test-clean:
5960
eif: clean ensure-version
6061
mkdir -p bin
6162
docker build --platform linux/amd64 --build-arg VERSION=$(VERSION) --build-arg ENV_ARG=$(ENV) -t waas-authenticator-builder .
62-
docker run --platform linux/amd64 -v $(TOP)/bin:/out waas-authenticator-builder waas-auth.$(VERSION)
63+
docker run --platform linux/amd64 -v $(OUTDIR):/out waas-authenticator-builder waas-auth.$(VERSION)
6364

6465
ensure-version:
6566
test -n "$(VERSION)"

0 commit comments

Comments
 (0)