We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a4d72d commit 75edb30Copy full SHA for 75edb30
1 file changed
push.sh
@@ -2,18 +2,21 @@
2
3
[[ $DEBUG = true ]] && set -x
4
5
-if [[ $GITHUB_EVENT_NAME != push && $GITHUB_EVENT_NAME != schedule ]]; then
6
- exit 0
7
-fi
8
-if [[ $GITHUB_EVENT_NAME == push && $GITHUB_REF != "refs/heads/master" ]]; then
9
10
+case $GITHUB_EVENT_NAME in
+ push|schedule|workflow_dispatch)
+ if [[ $GITHUB_REF != "refs/heads/master" ]]; then
+ exit 0
+ fi
+ ;;
11
+ *)
12
13
14
+esac
15
16
[[ -z $SKIP_LOGIN ]] && docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
17
18
for image in $(docker images --filter=label=org.ustcmirror.images=true --format="{{.Repository}}:{{.Tag}}")
19
do
- docker push "$image"
- echo "$image pushed"
20
+ docker push "$image" && echo "$image pushed"
21
done
22
0 commit comments