File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 61
61
[[ ${BUILDING_TAG} = true ]] && \
62
62
VERSION_NAME=${{github.ref_name}}
63
63
64
+ # Determine if we are building on master
64
65
BUILDING_ON_MASTER=false
65
- if (git merge-base --is-ancestor HEAD origin/master); then
66
- BUILDING_ON_MASTER=true
67
- fi
66
+ [[ ${GITHUB_REF_NAME} == 'master' ]] && BUILDING_ON_MASTER=true
68
67
69
68
# Use 'FROM' instruction to use docker build with --label
70
69
echo "FROM ${{matrix.target}}" | docker build \
76
75
--tag ${IMAGE_NAME}:unstable -
77
76
78
77
# Also tag with 'latest' if we are building on master
79
- [[ ${BUIDING_TAG} && ${ BUILDING_ON_MASTER} = true ]] && \
78
+ [[ ${BUILDING_ON_MASTER} = true ]] && \
80
79
docker tag ${IMAGE_NAME}:unstable ${IMAGE_NAME}:latest
81
80
# Also tag with version if we are building a tag
82
81
[[ ${BUILDING_TAG} = true && ${{matrix.target}} != "hydraw" ]] && \
You can’t perform that action at this time.
0 commit comments