-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding max limit to some API endpoints (#248) * Remove unnecessary foreign keys from gift_codes table. (#249) * Update readme installation instructions (#250) * Enable foreign key constraints. Fix transient FK errors when deleting an account. (#251) * Remove foreign key check before running migrations. This allows databases with existing foreign key errors to be fixed by the migrations. (#252) * Fix a bug causing sync to create many tiny chunks. (#253) * Remove target block arg from manually sync account fn (#255) * Initial action to build containers for tag pushes (#256) * Supporting FOG enabled accounts (#254) * FOG Creds default to empty string if not provided from API (#257) * update readme (#259) * Api key guard (#205) * fixing issue with ledger not syncing automatically (#261) * sync up to the last block instead of excluding it (#262)
- Loading branch information
1 parent
e0b1e3f
commit 3c9c1b8
Showing
37 changed files
with
992 additions
and
545 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,75 @@ | ||
name: Full Service CI | ||
|
||
env: | ||
DOCKERHUB_REPO: mobilecoin/full-service | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
branches: | ||
- 'develop' | ||
- 'feature/**' | ||
|
||
jobs: | ||
# Stub out job for work Mikey is working on for stress tests | ||
# tests: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: CI Tests | ||
# run: | | ||
# echo "Hello World" | ||
|
||
# Only run docker builds for tag pushes. Build testnet and mainnet images for now | ||
docker: | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- namespace: test | ||
network: testnet | ||
- namespace: prod | ||
network: mainnet | ||
outputs: | ||
tags: ${{ steps.meta.outputs.tags }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Generate Docker tags | ||
id: meta | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: ${{ env.DOCKERHUB_REPO }} | ||
flavor: | | ||
latest=false | ||
suffix=-${{ matrix.network }} | ||
tags: | | ||
type=semver,pattern=v{{version}},priority=20 | ||
type=sha,priority=10 | ||
- name: Setup Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
with: | ||
install: true | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and Publish to DockerHub | ||
id: docker_publish_dockerhub | ||
uses: docker/build-push-action@v2 | ||
with: | ||
build-args: | | ||
NAMESPACE=${{ matrix.namespace }} | ||
context: . | ||
push: true | ||
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 |
---|---|---|
|
@@ -67,4 +67,6 @@ ingest-enclave.css | |
|
||
*.mdb | ||
|
||
release/ | ||
release/ | ||
|
||
.env |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
14 changes: 14 additions & 0 deletions
14
full-service/migrations/2022-02-08-225206_simplify_gift_codes/down.sql
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,14 @@ | ||
DROP TABLE gift_codes; | ||
CREATE TABLE gift_codes ( | ||
id INTEGER NOT NULL PRIMARY KEY, | ||
gift_code_b58 VARCHAR NOT NULL, | ||
root_entropy BLOB, | ||
bip39_entropy BLOB, | ||
txo_public_key BLOB NOT NULL, | ||
value UNSIGNED BIG INT NOT NULL, | ||
memo TEXT NOT NULL DEFAULT '', | ||
account_id_hex VARCHAR NOT NULL DEFAULT '', | ||
txo_id_hex VARCHAR NOT NULL, | ||
FOREIGN KEY (account_id_hex) REFERENCES accounts(account_id_hex), | ||
FOREIGN KEY (txo_id_hex) REFERENCES txos(txo_id_hex) | ||
); |
9 changes: 9 additions & 0 deletions
9
full-service/migrations/2022-02-08-225206_simplify_gift_codes/up.sql
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,9 @@ | ||
CREATE TABLE NEW_gift_codes ( | ||
id INTEGER NOT NULL PRIMARY KEY, | ||
gift_code_b58 VARCHAR NOT NULL, | ||
value UNSIGNED BIG INT NOT NULL | ||
); | ||
INSERT INTO NEW_gift_codes SELECT id, gift_code_b58, value FROM gift_codes; | ||
DROP TABLE gift_codes; | ||
ALTER TABLE NEW_gift_codes RENAME TO gift_codes; | ||
|
1 change: 1 addition & 0 deletions
1
full-service/migrations/2022-02-15-200456_fog_enabled_accounts/down.sql
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 @@ | ||
ALTER TABLE accounts DROP COLUMN fog_enabled; |
1 change: 1 addition & 0 deletions
1
full-service/migrations/2022-02-15-200456_fog_enabled_accounts/up.sql
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 @@ | ||
ALTER TABLE accounts ADD COLUMN fog_enabled BOOLEAN NOT NULL DEFAULT FALSE; |
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
Oops, something went wrong.