This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated build to match appsody-buildah approach with CLI version and tag as params Signed-off-by: Neeraj Laad <[email protected]>
- Loading branch information
1 parent
c2e135e
commit 6acaf5a
Showing
4 changed files
with
18 additions
and
8 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,6 +1,11 @@ | ||
FROM gcr.io/cloud-builders/docker | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install sudo jq wget | ||
RUN wget https://github.com/appsody/appsody/releases/download/0.4.0/appsody_0.4.0_amd64.deb | ||
|
||
ARG CLI_VERSION | ||
RUN wget https://github.com/appsody/appsody/releases/download/$CLI_VERSION/appsody_$CLI_VERSION_amd64.deb | ||
RUN apt install -f ./appsody_$CLI_VERSION_amd64.deb | ||
|
||
COPY setupAndRunExtract.sh . | ||
RUN apt install -f ./appsody_0.4.0_amd64.deb | ||
RUN chmod +x setupAndRunExtract.sh |
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,10 @@ | ||
#!/bin/bash | ||
|
||
#Takes two parms: | ||
#CLI_VERSION | ||
#TRAVIS_TAG | ||
|
||
set -e | ||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
docker build -t $DOCKER_ORG/appsody-docker:$2 -t $DOCKER_ORG/appsody-docker:latest --build-arg CLI_VERSION=$1 . | ||
docker push $DOCKER_ORG/appsody-docker |
This file was deleted.
Oops, something went wrong.