This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,12 +49,22 @@ jobs: | |
layerform config set-context test-cloud -t cloud --url https://demo.layerform.dev --email [email protected] --password strongpass | ||
layerform config set-context test-local -t local --dir test | ||
- name: layerform config select-context | ||
- name: layerform config use-context | ||
run: | | ||
# fails if command succeeds | ||
! layerform config select-context test-does-not-exist # context does not exist | ||
! layerform config use-context test-does-not-exist # context does not exist | ||
layerform config set-context test-local -t local --dir test && layerform config select-context test-local | ||
# switch context to test-local | ||
layerform config use-context test-local | ||
layerfrom get-contexts | tee usecontext | ||
grep -E '^\*\s+test-local' usecontext | ||
!grep -E '^\*\s+test-s3' usecontext | ||
# switch context to test-s3 | ||
layerform config use-context test-s3 | ||
layerfrom get-contexts | tee usecontext | ||
!grep -E '^\*\s+test-local' usecontext | ||
grep -E '^\*\s+test-s3' usecontext | ||
- name: Configure | ||
run: | | ||
|
@@ -73,7 +83,7 @@ jobs: | |
grep 'No layer instances spawned' instances | ||
- name: Spawn instances | ||
run: | | ||
run: |` | ||
layerform spawn bar test_bar | ||
layerform spawn baz test_baz | ||
layerform spawn bar test_custom_foo --base foo=custom | ||
|