Skip to content

Commit

Permalink
continuously push for playground nodes #1253 (#1280)
Browse files Browse the repository at this point in the history
Signed-off-by: Onur Özkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed May 9, 2022
1 parent 128d096 commit b2cb7c3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
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

0 comments on commit b2cb7c3

Please sign in to comment.