-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to release container images to pipeline
- Loading branch information
1 parent
df2ecd7
commit a30dd25
Showing
8 changed files
with
314 additions
and
68 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 |
---|---|---|
|
@@ -3,7 +3,6 @@ internal/cmd/mocks/ | |
Jenkinsfile | ||
|
||
dev/ | ||
dist/ | ||
output/ | ||
|
||
**/*.sw[po] |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM alpine:3.17.1 as conjur-cli-go | ||
LABEL org.opencontainers.image.authors="CyberArk Software Ltd." | ||
|
||
ENTRYPOINT [ "/usr/local/bin/conjur" ] | ||
|
||
COPY dist/goreleaser/binaries/conjur_linux_amd64_v1 /usr/local/bin/conjur |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
# Navigate to the bin directory (where this script lives) to ensure we can run this script | ||
# from anywhere. | ||
cd "$(dirname "$0")" | ||
|
||
. ./build_utils | ||
|
||
function main() { | ||
local REPO_ROOT | ||
local CONTAINER_IMAGE_AND_TAG | ||
|
||
REPO_ROOT="$(repo_root)" | ||
CONTAINER_IMAGE_AND_TAG="conjur-cli:$(project_version_with_commit)" | ||
|
||
# Build container image/s by copying binaries | ||
# | ||
echo "Building ${CONTAINER_IMAGE_AND_TAG} container image" | ||
docker build \ | ||
--tag "${CONTAINER_IMAGE_AND_TAG}" \ | ||
--rm \ | ||
--file "${REPO_ROOT}/Dockerfile" \ | ||
"${REPO_ROOT}" | ||
} | ||
|
||
main |
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
Oops, something went wrong.