Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <[email protected]>
  • Loading branch information
matejvasek committed Jan 30, 2024
1 parent 84624be commit 381a969
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ jobs:
name: Build job
runs-on: ubuntu-latest
steps:
- name: Run docker
run: docker buildx --help
- uses: ./.github/composite/go-setup
- name: Build binaries
run: make func_linux_amd64 func_linux_arm64 func_linux_ppc64le func_linux_s390x
- name: Build images
run: |
docker buildx build . \
--platform=linux/ppc64le,linux/s390x,linux/amd64,linux/arm64 \
--push \
-t "ttl.sh/knative-func/test-img-$(uuid):10m"
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#FROM --platform=$BUILDPLATFORM golang:1.21.6-alpine3.19 AS builder
#ARG BUILDPLATFORM
#for now we use localy built binaries

FROM alpine/socat:latest

ARG TARGETPLATFORM
ARG TARGETARCH
ARG TARGETOS

RUN echo "func_${TARGETOS}_${TARGETARCH}"

COPY func_${TARGETOS}_${TARGETARCH} /bin/

0 comments on commit 381a969

Please sign in to comment.