mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
CI:Deploy
CI:Deploy
This commit is contained in:
commit
6cd2e87067
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 npm install web3
|
||||
|
||||
- name: Delete contents of folder
|
||||
run: |
|
||||
mkdir -p data
|
||||
rm -rf data/*
|
||||
echo "Folder cleaned."
|
||||
|
||||
- name: Deploy contract to devnet
|
||||
run: |
|
||||
cd hardhat.tmpl
|
||||
|
|
@ -51,9 +57,24 @@ jobs:
|
|||
|
||||
- name: Commit container state
|
||||
run: |
|
||||
echo "check data folder before shutdown"
|
||||
ls data
|
||||
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
|
||||
|
||||
- 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
|
||||
run: |
|
||||
docker push europe-west3-docker.pkg.dev/task-460410/task-repo/app:with-contracts
|
||||
|
|
@ -12,6 +12,7 @@ services:
|
|||
volumes:
|
||||
- ./data:/root/.ethereum
|
||||
command: >
|
||||
--datadir /root/.ethereum
|
||||
--dev
|
||||
--http
|
||||
--http.addr 0.0.0.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue