mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
CI:Deploy
This commit is contained in:
parent
0f6e8db236
commit
8f0a2d6fc7
2 changed files with 22 additions and 0 deletions
21
.github/workflows/ci-deploy.yml
vendored
21
.github/workflows/ci-deploy.yml
vendored
|
|
@ -44,6 +44,12 @@ jobs:
|
||||||
sudo apt install -y nodejs
|
sudo apt install -y nodejs
|
||||||
sudo npm install web3
|
sudo npm install web3
|
||||||
|
|
||||||
|
- name: Delete contents of folder
|
||||||
|
run: |
|
||||||
|
mkdir -p data
|
||||||
|
rm -rf data/*
|
||||||
|
echo "Folder cleaned."
|
||||||
|
|
||||||
- name: Deploy contract to devnet
|
- name: Deploy contract to devnet
|
||||||
run: |
|
run: |
|
||||||
cd hardhat.tmpl
|
cd hardhat.tmpl
|
||||||
|
|
@ -51,9 +57,24 @@ jobs:
|
||||||
|
|
||||||
- name: Commit container state
|
- name: Commit container state
|
||||||
run: |
|
run: |
|
||||||
|
echo "check data folder before shutdown"
|
||||||
|
ls data
|
||||||
docker stop geth-devnet
|
docker stop geth-devnet
|
||||||
|
echo "check data folder after shutdown"
|
||||||
|
ls data
|
||||||
docker commit geth-devnet europe-west3-docker.pkg.dev/task-460410/task-repo/app:with-contracts
|
docker commit geth-devnet europe-west3-docker.pkg.dev/task-460410/task-repo/app:with-contracts
|
||||||
|
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
|
- name: Commit and push changes
|
||||||
|
run: |
|
||||||
|
git add data
|
||||||
|
git commit -m "Update folder via GitHub Actions - deployed contract persistant data" || echo "No changes to commit"
|
||||||
|
git push origin master
|
||||||
|
|
||||||
- name: Push image to Artifact Registry
|
- name: Push image to Artifact Registry
|
||||||
run: |
|
run: |
|
||||||
docker push europe-west3-docker.pkg.dev/task-460410/task-repo/app:with-contracts
|
docker push europe-west3-docker.pkg.dev/task-460410/task-repo/app:with-contracts
|
||||||
|
|
@ -12,6 +12,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/root/.ethereum
|
- ./data:/root/.ethereum
|
||||||
command: >
|
command: >
|
||||||
|
--datadir /root/.ethereum
|
||||||
--dev
|
--dev
|
||||||
--http
|
--http
|
||||||
--http.addr 0.0.0.0
|
--http.addr 0.0.0.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue