-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve Docker script toolchain
- Loading branch information
Showing
5 changed files
with
33 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# This script will log in to Aliyun Container Registry and push the image up. | ||
# You first need to obtain the password for the account, otherwise you cannot push. | ||
|
||
set -e | ||
|
||
VERSION="latest" | ||
DIR=$(pwd) | ||
|
||
docker_image="registry.cn-hangzhou.aliyuncs.com/west2-online/fzuhelper-server:$VERSION" | ||
|
||
# login, only need to login once, then you can comment out this sentence. | ||
docker login registry.cn-hangzhou.aliyuncs.com [email protected] | ||
|
||
# push image | ||
docker buildx build --platform linux/amd64 -t $docker_image -f Dockerfile ../. --push |
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