mirror of
https://github.com/luxfi/oracle.git
synced 2026-10-30 15:23:21 +00:00
22 lines
625 B
Bash
Executable File
22 lines
625 B
Bash
Executable File
#!/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
|