Skip to content
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

Make it easier to use Docker-related Task targets #2358

Merged
merged 3 commits into from
Apr 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,14 @@ tasks:
/legacy-mongo-shell/test.js

docker-init:
run: once
cmds:
- docker buildx create --driver=docker-container --name=ferretdb --bootstrap=true --use=false
- cmd: docker buildx create --driver=docker-container --name=ferretdb --bootstrap=true --use=false
ignore_error: true
- docker buildx ls

docker-build:
deps: [gen-version]
deps: [gen-version, docker-init]
cmds:
- >
docker buildx build --builder=ferretdb
Expand All @@ -434,7 +436,6 @@ tasks:
# do not change that target much; see "Building and packaging" in README.md
build-release:
desc: "Build bin/ferretdb (production build)"
deps: [gen-version]
cmds:
- echo 'bin' > build/version/package.txt
- task: docker-build
Expand Down