-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: remove build steps on ci Signed-off-by: ponkio-o <[email protected]> * chore: update actions Signed-off-by: ponkio-o <[email protected]> * chore: format Signed-off-by: ponkio-o <[email protected]> * update dockerfile Signed-off-by: ponkio-o <[email protected]> * fix conflict Signed-off-by: ponkio-o <[email protected]> * added git command Signed-off-by: ponkio-o <[email protected]> * revert step to set PIPECD_VERSION Signed-off-by: ponkio-o <[email protected]> --------- Signed-off-by: ponkio-o <[email protected]>
- Loading branch information
Showing
8 changed files
with
113 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
FROM golang:1.23.3 AS builder | ||
|
||
WORKDIR /app | ||
|
||
COPY go.* ./ | ||
RUN go mod download | ||
|
||
COPY . ./ | ||
|
||
RUN make build/go MOD=helloworld | ||
|
||
FROM alpine:3.21.0 | ||
|
||
ADD .artifacts/helloworld /usr/local/bin/helloworld | ||
COPY --from=builder /app/.artifacts/helloworld /usr/local/bin/helloworld | ||
|
||
ENTRYPOINT ["helloworld"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
# https://github.com/pipe-cd/pipecd/pkgs/container/piped-base/301720292?tag=v0.49.3 | ||
FROM ghcr.io/pipe-cd/piped-base@sha256:e5ce81bfd81b6d8d24b2caf9ec482c3f6d11fff7ab96f6cc6fc854e82376fb3d | ||
FROM golang:1.23.3 AS builder | ||
|
||
ADD .artifacts/launcher /usr/local/bin/launcher | ||
WORKDIR /app | ||
|
||
COPY go.* ./ | ||
RUN go mod download | ||
|
||
COPY . ./ | ||
|
||
RUN make build/go MOD=launcher | ||
|
||
# https://github.com/pipe-cd/pipecd/pkgs/container/piped-base/321463679?tag=v0.50.0-26-ga8527d2 | ||
FROM ghcr.io/pipe-cd/piped-base@sha256:9960b45a5aa822ae45ca2966056d8d2e98795b51681df25afd1fecf96360981c | ||
|
||
COPY --from=builder /app/.artifacts/launcher /usr/local/bin/launcher | ||
|
||
ENTRYPOINT ["launcher"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
# https://github.com/pipe-cd/pipecd/pkgs/container/piped-base-okd/237191933?tag=v0.47.3-rc0-21-ge20cd0b | ||
FROM ghcr.io/pipe-cd/piped-base-okd@sha256:afb1bfee70d445986d04c2066d2887da7b1e2e454cecabec5bf37e3201cd7e7e | ||
FROM golang:1.23.3 AS builder | ||
|
||
ADD .artifacts/launcher /usr/local/bin/launcher | ||
WORKDIR /app | ||
|
||
COPY go.* ./ | ||
RUN go mod download | ||
|
||
COPY . ./ | ||
|
||
RUN make build/go MOD=launcher | ||
|
||
# https://github.com/pipe-cd/pipecd/pkgs/container/piped-base-okd/321464518?tag=v0.50.0-26-ga8527d2 | ||
FROM ghcr.io/pipe-cd/piped-base-okd@sha256:da9bd5a1dae3aa5c2df4baba81ff836ba4a55159d85984605549ef2d1f136895 | ||
|
||
COPY --from=builder /app/.artifacts/launcher /usr/local/bin/launcher | ||
|
||
ENTRYPOINT ["launcher"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
FROM golang:1.23.3 AS builder | ||
|
||
WORKDIR /app | ||
|
||
COPY go.* ./ | ||
RUN go mod download | ||
|
||
COPY . ./ | ||
|
||
RUN make build/go MOD=pipectl | ||
|
||
FROM alpine:3.21.0 | ||
|
||
RUN apk add --no-cache git | ||
|
||
ADD .artifacts/pipectl /usr/local/bin/pipectl | ||
COPY --from=builder /app/.artifacts/pipectl /usr/local/bin/pipectl | ||
|
||
ENTRYPOINT ["pipectl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
# https://github.com/pipe-cd/pipecd/pkgs/container/piped-base/301720292?tag=v0.49.3 | ||
FROM ghcr.io/pipe-cd/piped-base@sha256:e5ce81bfd81b6d8d24b2caf9ec482c3f6d11fff7ab96f6cc6fc854e82376fb3d | ||
FROM golang:1.23.3 AS builder | ||
|
||
ADD .artifacts/piped /usr/local/bin/piped | ||
WORKDIR /app | ||
|
||
COPY go.* ./ | ||
RUN go mod download | ||
|
||
COPY . ./ | ||
|
||
RUN make build/go MOD=piped | ||
|
||
# https://github.com/pipe-cd/pipecd/pkgs/container/piped-base/321463679?tag=v0.50.0-26-ga8527d2 | ||
FROM ghcr.io/pipe-cd/piped-base@sha256:9960b45a5aa822ae45ca2966056d8d2e98795b51681df25afd1fecf96360981c | ||
|
||
COPY --from=builder /app/.artifacts/piped /usr/local/bin/piped | ||
|
||
ENTRYPOINT ["piped"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
# https://github.com/pipe-cd/pipecd/pkgs/container/piped-base-okd/237191933?tag=v0.47.3-rc0-21-ge20cd0b | ||
FROM ghcr.io/pipe-cd/piped-base-okd@sha256:afb1bfee70d445986d04c2066d2887da7b1e2e454cecabec5bf37e3201cd7e7e | ||
FROM golang:1.23.3 AS builder | ||
|
||
ADD .artifacts/piped /usr/local/bin/piped | ||
WORKDIR /app | ||
|
||
COPY go.* ./ | ||
RUN go mod download | ||
|
||
COPY . ./ | ||
|
||
RUN make build/go MOD=piped | ||
|
||
# https://github.com/pipe-cd/pipecd/pkgs/container/piped-base-okd/321464518?tag=v0.50.0-26-ga8527d2 | ||
FROM ghcr.io/pipe-cd/piped-base-okd@sha256:da9bd5a1dae3aa5c2df4baba81ff836ba4a55159d85984605549ef2d1f136895 | ||
|
||
COPY --from=builder /app/.artifacts/piped /usr/local/bin/piped | ||
|
||
ENTRYPOINT ["piped"] |