Skip to content

Commit ae5f9a1

Browse files
committed
updating push script
Signed-off-by: Oum Kale <[email protected]>
1 parent 29e83a0 commit ae5f9a1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ stages:
99
- push docker images
1010

1111
before_script:
12-
- sleep 15
1312
- sudo apt-get install -y curl shellcheck
1413
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
1514
# #Upgrade to Docker CE 19.03 for BuildKit support

build/push

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ then
1919
docker login -u "${DNAME}" -p "${DPASS}";
2020
# Push image to docker hub
2121
echo "Pushing ${REPONAME}/${IMGNAME}:${IMGTAG} ...";
22-
docker buildx build --file build/Dockerfile --push --progress plane --platform linux/arm64,linux/amd64 --no-cache --tag ${REPONAME}/${IMGNAME}:${IMGTAG} .
22+
docker buildx build --file Dockerfile --push --progress plane --platform linux/arm64,linux/amd64 --no-cache --tag ${REPONAME}/${IMGNAME}:${IMGTAG} .
2323
if [ ! -z "${TRAVIS_TAG}" ] ;
2424
then
2525
# Push with different tags if tagged as a release
2626
# When github is tagged with a release, then Travis will
2727
# set the release tag in env TRAVIS_TAG
2828
echo "Pushing ${REPONAME}/${IMGNAME}:${TRAVIS_TAG} ...";
29-
docker buildx build --file build/Dockerfile --push --progress plane --platform linux/arm64,linux/amd64 --no-cache --tag ${REPONAME}/${IMGNAME}:${TRAVIS_TAG} .
29+
docker buildx build --file Dockerfile --push --progress plane --platform linux/arm64,linux/amd64 --no-cache --tag ${REPONAME}/${IMGNAME}:${TRAVIS_TAG} .
3030
echo "Pushing ${REPONAME}/${IMGNAME}:latest ...";
31-
docker buildx build --file build/Dockerfile --push --progress plane --platform linux/arm64,linux/amd64 --no-cache --tag ${REPONAME}/${IMGNAME}:latest .
31+
docker buildx build --file Dockerfile --push --progress plane --platform linux/arm64,linux/amd64 --no-cache --tag ${REPONAME}/${IMGNAME}:latest .
3232
fi;
3333
else
3434
echo "No docker credentials provided. Skip uploading ${REPONAME}/${IMGNAME}:${IMGTAG} to docker hub";

0 commit comments

Comments
 (0)