-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #576 from 0xsend/dev
deploy
- Loading branch information
Showing
31 changed files
with
1,426 additions
and
442 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
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 |
---|---|---|
@@ -1,21 +1,27 @@ | ||
name: Deploy Dev | ||
|
||
on: | ||
push: | ||
workflow_run: | ||
workflows: ["Docker Build"] | ||
branches: [dev] | ||
types: | ||
- completed | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build-docker | ||
deploy-docker-dev: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Configure SSH | ||
- name: Configure ssh & Deploy | ||
shell: bash | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
echo "$SSH_KEY" > ~/.ssh/deployer.key | ||
chmod 600 ~/.ssh/deployer.key | ||
echo "$SSH_KEY" | base64 -d > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
echo "$DEPLOYMENT_TARGETS" | ||
for h in $DEPLOYMENT_TARGETS; do echo Deploying to $h && \ | ||
ssh -o ConnectTimeout=10 -o StrictHostKeyChecking=no $SSH_USER@$h \ | ||
timeout 30 ssh $SSH_FLAGS $SSH_USER@$h \ | ||
'cd /opt/next-app-dev && docker compose pull && docker compose up -d' ; done | ||
env: | ||
SSH_USER: ${{ secrets.DEPLOYER_SSH_USER }} | ||
SSH_KEY: ${{ secrets.DEPLOYER_SSH_KEY }} | ||
SSH_FLAGS: ${{ secrets.DEPLOYER_SSH_FLAGS }} | ||
DEPLOYMENT_TARGETS: ${{ secrets.DEV_DOCKER_DEPLOYMENT_TARGETS }} |
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,15 +1,15 @@ | ||
[submodule "packages/contracts/lib/forge-std"] | ||
path = packages/contracts/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
path = packages/contracts/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "packages/contracts/lib/openzeppelin-contracts"] | ||
path = packages/contracts/lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts | ||
path = packages/contracts/lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts | ||
[submodule "packages/contracts/lib/account-abstraction"] | ||
path = packages/contracts/lib/account-abstraction | ||
url = https://github.com/eth-infinitism/account-abstraction | ||
path = packages/contracts/lib/account-abstraction | ||
url = https://github.com/eth-infinitism/account-abstraction | ||
[submodule "packages/contracts/lib/openzeppelin-contracts-upgradeable"] | ||
path = packages/contracts/lib/openzeppelin-contracts-upgradeable | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable | ||
path = packages/contracts/lib/openzeppelin-contracts-upgradeable | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable | ||
[submodule "packages/contracts/lib/p256-verifier"] | ||
path = packages/contracts/lib/p256-verifier | ||
url = https://github.com/daimo-eth/p256-verifier | ||
path = packages/contracts/lib/p256-verifier | ||
url = https://github.com/0xbigboss/p256-verifier |
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
Oops, something went wrong.