Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 080d18b

Browse files
committed
ci: pipeline upload - login only when necessary
1 parent 1d4f074 commit 080d18b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/upload-to-concourse.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ fi
99

1010
echo "Please follow https://github.com/cloudfoundry/routing-concourse/blob/main/README.md#authentication-to-concourse for login."
1111

12-
fly -t networking-extensions login -c https://concourse.arp.cloudfoundry.org/
12+
! fly status -t networking-extensions >/dev/null && \
13+
fly -t networking-extensions login -c https://concourse.arp.cloudfoundry.org/
1314
fly -t networking-extensions validate-pipeline -c pipeline.yml
1415
fly -t networking-extensions set-pipeline -p pcap-release -c pipeline.yml --load-vars-from vars.yml
1516
fly -t networking-extensions expose-pipeline -p pcap-release

0 commit comments

Comments
 (0)