Skip to content

Commit 6db7cf3

Browse files
authored
Fix plugin artifect name in docker image (#49)
* Fix plugin artifect name Signed-off-by: Wilson Wu <[email protected]> * Fix name Signed-off-by: Wilson Wu <[email protected]> * Add doc Signed-off-by: Wilson Wu <[email protected]> --------- Signed-off-by: Wilson Wu <[email protected]>
1 parent c2ddc9c commit 6db7cf3

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a golang project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
33

4-
name: Contour plugin CI
4+
name: Contour plugin Release
55
on:
66
push:
77
tags:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ WORKDIR /app
77

88
COPY . .
99

10-
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -ldflags "-s -w" -o rollouts-plugin-trafficrouter-contour-linux-${TARGETARCH} .
10+
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -ldflags "-s -w" -o rollouts-plugin-trafficrouter-contour .
1111

1212
FROM alpine:3.19.0
1313

1414
ARG TARGETARCH
1515

16-
COPY --from=builder /app/rollouts-plugin-trafficrouter-contour-linux-${TARGETARCH} /bin/
16+
COPY --from=builder /app/rollouts-plugin-trafficrouter-contour /bin/

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ spec:
9999

100100
6. Enjoy It.
101101

102+
## Use it by Docker image
103+
104+
From v0.2.3, you can use this plugin from a init container, the plugin artifact location in the image is:
105+
106+
```
107+
/bin/rollouts-plugin-trafficrouter-contour
108+
```
109+
110+
The docker image with its artifact both support amd64 and arm64.
111+
102112
## Contributing
103113

104114
Thanks for taking the time to join our community and start contributing!

0 commit comments

Comments
 (0)