mirror of
https://github.com/luxfi/uma.git
synced 2026-07-27 05:11:41 +00:00
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat << 'EOF'
|
||||
docker-publish-latest:
|
||||
machine:
|
||||
image: ubuntu-2004:202010-01
|
||||
resource_class: large
|
||||
steps:
|
||||
- restore_cache:
|
||||
key: protocol-completed-build-{{ .Environment.CIRCLE_SHA1 }}
|
||||
- run:
|
||||
name: Build Docker image
|
||||
command: |
|
||||
cd /home/circleci/protocol
|
||||
docker build -t umaprotocol/protocol:latest .
|
||||
- run:
|
||||
name: Publish Docker Image to Docker Hub
|
||||
command: |
|
||||
echo $DOCKERHUB_PASS | docker login -u $DOCKERHUB_USERNAME --password-stdin
|
||||
docker push umaprotocol/protocol:latest
|
||||
EOF
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat << EOF
|
||||
- docker-publish-latest:
|
||||
context: dockerhub-publish
|
||||
requires:
|
||||
- tests-required
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
EOF
|
||||
@@ -34,6 +34,7 @@ else
|
||||
|
||||
/bin/bash $TESTS_PATH/test-required.sh >> $CI_CONFIG_FILE
|
||||
|
||||
/bin/bash ci/dockerhub.sh >> $CI_CONFIG_FILE
|
||||
|
||||
printf "\n\nworkflows:\n version: 2.1\n build_and_test:\n jobs:\n" >> $CI_CONFIG_FILE
|
||||
|
||||
@@ -76,5 +77,6 @@ EOF
|
||||
done
|
||||
|
||||
# printf " - test-integration" >> $CI_CONFIG_FILE
|
||||
/bin/bash ci/dockerhub_workflow.sh >> $CI_CONFIG_FILE
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user