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

[r2r] continuously push for playground nodes #1280

Merged
merged 1 commit into from
May 9, 2022
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions Dockerfile.dev-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM debian:stable-slim
WORKDIR /mm2
COPY target/release/mm2 /usr/local/bin/mm2
EXPOSE 7783
CMD ["mm2"]
23 changes: 23 additions & 0 deletions azure-pipelines-build-stage-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,29 @@ jobs:
condition: ne ( variables['Build.Reason'], 'PullRequest' )
env:
MANUAL_MM_VERSION: true
- task: Docker@2
displayName: Build & Push container of dev branch
condition: and( eq( variables['Agent.OS'], 'Linux' ), eq( variables['Build.SourceBranchName'], 'dev' ) )
inputs:
containerRegistry: dockerhub
repository: komodoofficial/atomicdexapi
command: buildAndPush
tags: |
dev-$(COMMIT_HASH)
dev-latest
Dockerfile: Dockerfile.dev-release
- bash: |
rm -rf mm2-playground-node
git clone git@github.com:KomodoPlatform/mm2-playground-node.git
if [ -d "mm2-playground-node" ]; then
cd mm2-playground-node
sed -i "1s/^.*$/$(COMMIT_HASH)/" .commit
git add .commit
git commit -m "$(COMMIT_HASH) is committed for git & container registry"
git push
fi
condition: and( eq( variables['Agent.OS'], 'Linux' ), eq( variables['Build.SourceBranchName'], 'dev' ) )
displayName: 'Update playground deployment'
# Explicit --test-threads=16 makes testing process slightly faster on agents that have <16 CPU cores.
# Always run tests on mm2.1 branch and PRs
# On MacOS, run for x86_64-apple-darwin
Expand Down