This repository has been archived by the owner on May 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I496ec38bc5896d6be34c6c784ec1a2a322ad07f9
- Loading branch information
1 parent
f92725e
commit ccded0a
Showing
4 changed files
with
66 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.coverprofile | ||
.k8s | ||
velero-plugin-storj | ||
velero-plugin-for-tardigrade |
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,11 +1,11 @@ | ||
FROM golang:1.14-buster AS build | ||
ENV GOPROXY=https://proxy.golang.org | ||
WORKDIR /storj | ||
COPY . . | ||
RUN make go-build | ||
COPY . /go/src/velero-plugin-for-tardigrade | ||
WORKDIR /go/src/velero-plugin-for-tardigrade | ||
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /go/bin/velero-plugin-for-tardigrade ./cmd | ||
|
||
FROM ubuntu:bionic | ||
RUN mkdir /plugins | ||
COPY --from=build /storj/velero-plugin-storj /plugins/ | ||
COPY --from=build /go/bin/velero-plugin-for-tardigrade /plugins/ | ||
USER nobody:nogroup | ||
ENTRYPOINT ["/bin/bash", "-c", "cp /plugins/* /target/."] |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
node('node') { | ||
properties([disableConcurrentBuilds()]) | ||
try { | ||
currentBuild.result = "SUCCESS" | ||
|
||
stage('Checkout') { | ||
checkout scm | ||
|
||
echo "Current build result: ${currentBuild.result}" | ||
} | ||
|
||
stage('Build Images') { | ||
sh 'make plugin-build' | ||
|
||
echo "Current build result: ${currentBuild.result}" | ||
} | ||
|
||
stage('Push Images') { | ||
sh 'make push' | ||
|
||
echo "Current build result: ${currentBuild.result}" | ||
} | ||
} | ||
catch (err) { | ||
echo "Caught errors! ${err}" | ||
echo "Setting build result to FAILURE" | ||
currentBuild.result = "FAILURE" | ||
throw err | ||
} | ||
finally { | ||
stage('Cleanup') { | ||
sh 'make clean' | ||
deleteDir() | ||
} | ||
} | ||
} |
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