File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,13 +95,13 @@ jobs:
95
95
target : image
96
96
build-args :
97
97
GO_VERSION=${{ env.GO_VERSION }}
98
- outputs : type=docker,dest=runtime.tar
98
+ outputs : type=docker,dest=runtime-${{ matrix.arch }} .tar
99
99
100
100
- name : Setup the Crossplane CLI
101
101
run : " curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh"
102
102
103
103
- name : Build Package
104
- run : ./crossplane xpkg build --package-file=${{ matrix.arch }}.xpkg --package-root=package/ --embed-runtime-image-tarball=runtime.tar
104
+ run : ./crossplane xpkg build --package-file=${{ matrix.arch }}.xpkg --package-root=package/ --embed-runtime-image-tarball=runtime-${{ matrix.arch }} .tar
105
105
106
106
- name : Upload Single-Platform Package
107
107
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 2
2
3
3
# We use the latest Go 1.x version unless asked to use something else.
4
4
ARG GO_VERSION=1
5
- ARG TARGETOS
6
- ARG TARGETARCH
7
5
8
6
# Setup the base environment.
9
7
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS base
@@ -16,6 +14,8 @@ RUN --mount=type=cache,target=/go/pkg/mod go mod download
16
14
17
15
# Build the Function.
18
16
FROM base AS build
17
+ ARG TARGETOS
18
+ ARG TARGETARCH
19
19
RUN --mount=target=. \
20
20
--mount=type=cache,target=/go/pkg/mod \
21
21
--mount=type=cache,target=/root/.cache/go-build \
You can’t perform that action at this time.
0 commit comments