-
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.
Push with commit ref, and push the k3s server and ystack-proxy images
- Loading branch information
Showing
4 changed files
with
23 additions
and
9 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
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,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "post_push listing env" | ||
echo "# post_push # Env:" | ||
printenv | ||
|
||
echo "post_push listing images" | ||
echo "# post_push # Images:" | ||
docker images | ||
|
||
$tagCommit=$(echo $IMAGE_NAME | sed "s|:.*|:$SOURCE_COMMIT|") | ||
docker tag $IMAGE_NAME $tagCommit | ||
docker push $tagCommit | ||
|
||
$tagServer=$(echo $IMAGE_NAME | sed "s|:.*|:$SOURCE_COMMIT-k3s|") | ||
docker tag ${BUILD_CODE}_master1 $tagServer | ||
docker push $tagServer | ||
|
||
$tagProxy=$(echo $IMAGE_NAME | sed "s|:.*|:$SOURCE_COMMIT-proxy|") | ||
docker tag ${BUILD_CODE}_ystack-proxy $tagProxy | ||
docker push $tagProxy | ||
|
||
echo "# post_push # Completed." |