Skip to content

Commit

Permalink
Fix plugin artifect name in docker image (#49)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
wilsonwu authored Dec 18, 2023
1 parent c2ddc9c commit 6db7cf3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Contour plugin CI
name: Contour plugin Release
on:
push:
tags:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ WORKDIR /app

COPY . .

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

FROM alpine:3.19.0

ARG TARGETARCH

COPY --from=builder /app/rollouts-plugin-trafficrouter-contour-linux-${TARGETARCH} /bin/
COPY --from=builder /app/rollouts-plugin-trafficrouter-contour /bin/
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ spec:

6. Enjoy It.

## Use it by Docker image

From v0.2.3, you can use this plugin from a init container, the plugin artifact location in the image is:

```
/bin/rollouts-plugin-trafficrouter-contour
```

The docker image with its artifact both support amd64 and arm64.

## Contributing

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

0 comments on commit 6db7cf3

Please sign in to comment.