correct spacing of conditional

This commit is contained in:
El RIDO 2021-06-06 11:31:26 +02:00
parent de2c135fef
commit 5742021b20
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -22,7 +22,7 @@ sed 's/^FROM alpine:.*$/FROM alpine:edge/' Dockerfile > Dockerfile-edge
docker build --no-cache --pull --output "type=image,push=false" ${BUILDX_EDGE_ARGS}
# push cached images
if [ "${EVENT}" != "pull_request"] && ([ "${GITHUB_REF}" != "refs/heads/master" ] || [ "${EVENT}" = "schedule"])
if [ "${EVENT}" != "pull_request" ] && ([ "${GITHUB_REF}" != "refs/heads/master" ] || [ "${EVENT}" = "schedule" ])
then
printenv DOCKER_PASSWORD | docker login --username "${DOCKER_USERNAME}" --password-stdin
docker build --output "type=image,push=true" ${BUILDX_ARGS}