-
Notifications
You must be signed in to change notification settings - Fork 2
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
88 additions
and
39 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 |
---|---|---|
|
@@ -11,43 +11,27 @@ jobs: | |
- name: Install and cache Hetzner Cloud CLI | ||
uses: 3bit/setup-hcloud@v2 | ||
- name: Create mina-build-system cloud VM | ||
run: hcloud server create --name mina-build-system --datacenter fsn1-dc14 --primary-ipv4 35577977 --image 121535411 --type cpx31 --ssh-key app@localhost --start-after-create | ||
run: hcloud server create --name mina-build-system --datacenter fsn1-dc14 --primary-ipv4 35577977 --image 132107836 --type cpx31 --ssh-key app@localhost --start-after-create | ||
env: | ||
HCLOUD_TOKEN: ${{ secrets.HETZNER_API_TOKEN }} | ||
- name: Sleep for 120 seconds | ||
run: sleep 120s | ||
shell: bash | ||
- name: Update remote repository | ||
- name: Update remote repositories | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.MINA_BUILD_SYSTEM_IP }} | ||
username: ${{ secrets.MINA_BUILD_SYSTEM_SSH_USER_NAME }} | ||
key: ${{ secrets.MINA_BUILD_SYSTEM_SSH_PRIVATE_KEY }} | ||
script: bash -ilc "cd ${HOME}/projects/o1labs/mina-lightnet-docker && git stash && git pull && git reset && git clean -f && git checkout . && git submodule sync && git submodule update --recursive --init" | ||
command_timeout: 170m | ||
- name: Update GoEnv | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.MINA_BUILD_SYSTEM_IP }} | ||
username: ${{ secrets.MINA_BUILD_SYSTEM_SSH_USER_NAME }} | ||
key: ${{ secrets.MINA_BUILD_SYSTEM_SSH_PRIVATE_KEY }} | ||
script: bash -ilc "cd ${HOME}/.goenv && git fetch --all && git pull" | ||
command_timeout: 170m | ||
- name: Install Go 1.19.12 | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.MINA_BUILD_SYSTEM_IP }} | ||
username: ${{ secrets.MINA_BUILD_SYSTEM_SSH_USER_NAME }} | ||
key: ${{ secrets.MINA_BUILD_SYSTEM_SSH_PRIVATE_KEY }} | ||
script: bash -ilc "goenv install --skip-existing 1.19.12 && goenv global 1.19.12" | ||
script: bash -ilc "${HOME}/projects/git-pull-all.sh" | ||
command_timeout: 170m | ||
- name: Build and publish Docker images (major branches) | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.MINA_BUILD_SYSTEM_IP }} | ||
username: ${{ secrets.MINA_BUILD_SYSTEM_SSH_USER_NAME }} | ||
key: ${{ secrets.MINA_BUILD_SYSTEM_SSH_PRIVATE_KEY }} | ||
script: bash -ilc "${HOME}/projects/o1labs/mina-lightnet-docker/scripts/build-all.sh ${HOME}/projects/o1labs/mina ${HOME}/projects/o1labs/mina-lightnet-docker ${HOME}/projects/p42/mina-accounts-manager o1labs \"develop berkeley rampup\"" | ||
script: bash -ilc "${HOME}/projects/o1labs/mina-lightnet-docker/scripts/build-all.sh ${HOME}/projects/o1labs/mina ${HOME}/projects/o1labs/Archive-Node-API ${HOME}/projects/o1labs/mina-lightnet-docker ${HOME}/projects/p42/mina-accounts-manager o1labs \"develop berkeley rampup\"" | ||
command_timeout: 170m | ||
- name: Sleep for 15 seconds | ||
run: sleep 15s | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
PORT=8282 | ||
CORS_ORIGIN="*" | ||
|
||
PG_CONN="postgresql://postgres:postgres@localhost:5432/archive" | ||
|
||
ENABLE_GRAPHIQL="true" | ||
ENABLE_INTROSPECTION="true" | ||
|
||
ENABLE_LOGGING="true" | ||
_ENABLE_JAEGER="false" | ||
JAEGER_SERVICE_NAME="archive-api" | ||
JAEGER_ENDPOINT='http://localhost:14268/api/traces' |
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