Skip to content

Commit

Permalink
Better build docker script
Browse files Browse the repository at this point in the history
  • Loading branch information
vania-pooh committed Nov 20, 2022
1 parent b21f4f4 commit fc8b8ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ci/docker-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ set -e

docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker login quay.io -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD"
docker build -t "$GITHUB_REPOSITORY" .
docker tag "$GITHUB_REPOSITORY" "$GITHUB_REPOSITORY:$1" "quay.io/$GITHUB_REPOSITORY" "quay.io/$GITHUB_REPOSITORY:$1"
docker build -t "$GITHUB_REPOSITORY" -t "$GITHUB_REPOSITORY:$1" -t "quay.io/$GITHUB_REPOSITORY" -t "quay.io/$GITHUB_REPOSITORY:$1" .
docker push "$GITHUB_REPOSITORY"
docker push "$GITHUB_REPOSITORY:$1"
docker push "quay.io/$GITHUB_REPOSITORY"
Expand Down

0 comments on commit fc8b8ae

Please sign in to comment.