Skip to content

Commit

Permalink
Merge pull request #2 from cheqd/sync-with-upstream
Browse files Browse the repository at this point in the history
chore: Sync with upstream [DEV-3811]
  • Loading branch information
ankurdotb authored Apr 5, 2024
2 parents fd4cdb8 + 92eadc0 commit 9dff6fd
Show file tree
Hide file tree
Showing 927 changed files with 5,536 additions and 4,240 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ workflows:
- build
matrix:
parameters:
simapp: ["simapp44", "simapp46", "simapp47"]
simapp: ["simapp44", "simapp46", "simapp47", "simapp50"]
- test-node:
requires:
- build
Expand Down Expand Up @@ -170,6 +170,7 @@ jobs:
[ "<< parameters.simapp >>" = "simapp44" ] && export SIMAPP44_ENABLED=1 SLOW_SIMAPP44_ENABLED=1
[ "<< parameters.simapp >>" = "simapp46" ] && export SIMAPP46_ENABLED=1 SLOW_SIMAPP46_ENABLED=1
[ "<< parameters.simapp >>" = "simapp47" ] && export SIMAPP47_ENABLED=1 SLOW_SIMAPP47_ENABLED=1
[ "<< parameters.simapp >>" = "simapp50" ] && export SIMAPP50_ENABLED=1 SLOW_SIMAPP50_ENABLED=1
yarn test --stream
- run:
name: Run CLI selftest
Expand All @@ -190,6 +191,7 @@ jobs:
[ "<< parameters.simapp >>" = "simapp44" ] && export SIMAPP44_ENABLED=1 SLOW_SIMAPP44_ENABLED=1
[ "<< parameters.simapp >>" = "simapp46" ] && export SIMAPP46_ENABLED=1 SLOW_SIMAPP46_ENABLED=1
[ "<< parameters.simapp >>" = "simapp47" ] && export SIMAPP47_ENABLED=1 SLOW_SIMAPP47_ENABLED=1
[ "<< parameters.simapp >>" = "simapp50" ] && export SIMAPP50_ENABLED=1 SLOW_SIMAPP50_ENABLED=1
./run_examples.sh
- run:
name: Stop chains
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "Build Docker Image"
on:
push:
branches:
- main
defaults:
run:
shell: bash

jobs:

build-and-push:
name: "Build and push Docker image"
runs-on: ubuntu-latest
env:
IMAGE_NAME: 'cheqd-faucet'

steps:
- uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
id: buildx
with:
install: true
version: latest

- name: Configure Docker image metadata
id: meta
uses: docker/metadata-action@v4
with:
images: |
registry.digitalocean.com/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest
type=sha,format=long
- name: Build image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.faucet
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=min

- name: Install DigitalOcean CLI
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Login to DOCR
run: doctl registry login --expiry-seconds 600

- name: Push staging image to DOCR
run: docker image push --all-tags registry.digitalocean.com/${{ env.IMAGE_NAME }}
Loading

0 comments on commit 9dff6fd

Please sign in to comment.