Skip to content

Commit

Permalink
Merge pull request #10 from titel-media/chore/vpn
Browse files Browse the repository at this point in the history
Add vpn connecting to push deploy job when config present
  • Loading branch information
duksis authored Mar 19, 2020
2 parents 5852876 + cb1f53d commit 8d43427
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/@orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ orbs:
gcloud: circleci/[email protected]
gcr: circleci/[email protected]
k8s: circleci/[email protected]
vpn: titel-media/[email protected]
4 changes: 4 additions & 0 deletions src/commands/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ description: "Install `gcloud` and `kubectl` if not already installed."
steps:
- gcloud/install
- k8s/install
- when:
condition: $WIREGUARD_CONFIG
steps:
- vpn/install
4 changes: 4 additions & 0 deletions src/jobs/publish-and-rollout-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ steps:
tag: << parameters.tag >>
path: <<parameters.cwd-path-for-build>>
extra_build_args: <<parameters.extra_build_args>>
- when:
condition: $WIREGUARD_CONFIG
steps:
- vpn/connect
- gcr/push-image:
registry-url: <<parameters.registry-url>>
google-project-id: <<parameters.google-project-id>>
Expand Down

0 comments on commit 8d43427

Please sign in to comment.