-
Notifications
You must be signed in to change notification settings - Fork 155
feat(container): implement deploy workflow #2872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
17b1b0f
feat: improve composite tasks logging
quantumsheep 4b6ea67
fix: abandonate file description sharing
quantumsheep ef29e52
feat: use a file instead of a pipe
quantumsheep 92f59f2
feat: improve tasks and cleanup cancelling
quantumsheep 5db105e
go mod tidy
quantumsheep 2a7d555
feat(container): implement deploy workflow
quantumsheep 9d42850
feat: add dockerfile, build source and port arguments
quantumsheep 4e498c8
refactor: separate each tasks
quantumsheep 7c4e8fa
refactor: make linter happy
quantumsheep 4248b81
docs: generate documentation
quantumsheep fb532d7
feat: improve logging and result feedback
quantumsheep 14baf47
feat: use logger file description for json message stream
quantumsheep 71f950b
go mod tidy
quantumsheep 05e9b47
docs: add cache
quantumsheep abadf38
feat: add namespace argument
quantumsheep ab0937e
docs: regenerate documentation
quantumsheep 350dff2
apply fixes
quantumsheep 65592a4
test: add tests
quantumsheep e288f7f
update github.com/docker/docker
quantumsheep 1f834e0
update documentation
quantumsheep 4235708
update testdata
quantumsheep 4bcf7c4
feat: use http client and allow tests to pass
quantumsheep 6706147
update sdk-go
quantumsheep a9be584
Merge branch 'master' into feat/container-deploy
quantumsheep ec91406
rename socket transport
quantumsheep 977ed52
replace `//./pipe/docker_engine` by `/var/run/docker.sock`
quantumsheep 7c42c52
support for windows
quantumsheep 73d72cd
fix error messages wrapping
quantumsheep b65ccb1
fix waiter retry interval
quantumsheep d8611fd
Merge branch 'master' into feat/container-deploy
quantumsheep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
cmd/scw/testdata/test-all-usage-container-deploy-usage.golden
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
Automatically build and deploy a container. | ||
|
||
USAGE: | ||
scw container deploy [arg=value ...] | ||
|
||
ARGS: | ||
[name] Name of the application (defaults to build-source's directory name) | ||
[dockerfile=Dockerfile] Path to the Dockerfile | ||
[build-source=.] Path to the build context | ||
[cache=true] Use cache when building the image | ||
[port=8080] Port to expose | ||
[namespace-id] Container Namespace ID to deploy to | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all) | ||
|
||
FLAGS: | ||
-h, --help help for deploy | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.