generated from spknetwork/js-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
25,941 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
tags: | ||
- "v*.*.*" | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
# list of Docker images to use as base name for tags | ||
images: | | ||
${{vars.DOCKERHUB_IMAGE}} | ||
# generate Docker tags based on the following events/attributes | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=sha | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to Docker Hub | ||
if: github.event_name != 'pull_request' | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: ${{ github.event_name != 'pull_request' }} | ||
platforms: linux/amd64,linux/arm64 | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
node_modules | ||
*-lock.json | ||
coverage | ||
logs | ||
dist | ||
.env | ||
inventory.yml | ||
data | ||
contracts/example.js | ||
seed-backup | ||
seed-backup | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
version: "3.3" | ||
|
||
services: | ||
vsc-node: # name of the service | ||
image: vaultec/vsc-node:latest | ||
container_name: vsc-node # what to label the container for docker ps | ||
restart: always # restart if failed, until we stop it ourselves | ||
#external_links: | ||
#- mongo | ||
depends_on: | ||
- ipfs | ||
networks: | ||
- vsc-node | ||
ports: | ||
- 1337:1337 | ||
environment: | ||
IPFS_HOST: http://ipfs:5001 | ||
MONGO_HOST: mongo:27017 | ||
volumes: | ||
- node-modules-store:/home/github/app/node_modules | ||
- ./data/vsc-node:/root/.vsc-node | ||
- ./seed-backup.json:/root/.vsc-seed-backup.json | ||
- ./.git/refs/heads/main:/root/git_commit | ||
|
||
mongo: | ||
container_name: mongo_vsc | ||
image: mongo:4.4.18 | ||
restart: always | ||
ports: | ||
- 127.0.0.1:27021:27017 | ||
networks: | ||
- vsc-node | ||
volumes: | ||
- ./data/vsc-db:/data/db | ||
|
||
ipfs: | ||
container_name: ipfs-vsc | ||
image: ipfs/kubo:v0.18.1 | ||
restart: always | ||
command: | ||
- daemon | ||
- --enable-pubsub-experiment | ||
- --init-profile | ||
- server | ||
networks: | ||
- vsc-node | ||
ports: | ||
- "4001:4001" | ||
- "127.0.0.1:5001:5001" | ||
environment: | ||
IPFS_PATH: /etc/ipfs | ||
volumes: | ||
- ./data/ipfs:/etc/ipfs | ||
|
||
volumes: | ||
node-modules-store: {} | ||
mongodb: {} | ||
|
||
networks: | ||
vsc-node: | ||
driver: bridge |
Oops, something went wrong.