Skip to content

Commit

Permalink
Merge pull request #1049 from dm3-org/feature/reset-state-on-deploy
Browse files Browse the repository at this point in the history
Feature/reset state on deploy
  • Loading branch information
malteish authored Jun 26, 2024
2 parents baff095 + 4bfad1a commit 8111acd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ jobs:
--tag dm3org/$image_name:$version${{ env.docker_suffix }}.${{ env.unix_now }}.${{ env.sha_short }} .
docker save -o ./$image_name.tar $image_name:latest
docker push --all-tags dm3org/$image_name
- name: Build offchain-resolver docker image
- name: Build and publish offchain-resolver docker image
shell: bash
run: |
version=$(NODE_PATH=packages/delivery-service node -p "require('package.json').version")
version=$(NODE_PATH=packages/offchain-resolver node -p "require('package.json').version")
image_name=dm3-offchain-resolver
docker build --progress=plain -f ./docker/DockerfilePackages --build-arg="PACKAGE=offchain-resolver" \
--tag $image_name:latest \
Expand Down Expand Up @@ -146,13 +146,13 @@ jobs:
run: |
if [ $environment_name == "testing" ]; then
ssh -i ./ssh-key root@${{ vars.HOST_DOMAIN }} "\
cd /mnt/dm3_prod_volume/db && rm -r * || true; \"
cd /mnt/dm3_prod_volume/db && rm -r * || true"
fi
- name: Configure Firewall
run: |
ssh -i ./ssh-key root@${{ vars.HOST_DOMAIN }} "\
ufw allow from 172.18.0.1/16 proto tcp to ${{ vars.HOST_IP}} port 80;
ufw allow from 172.18.0.1/16 proto tcp to ${{ secrets.IP_ADDRESS }} port 443;
ufw allow from 172.18.0.1/16 proto tcp to ${{ vars.HOST_IP }} port 80;
ufw allow from 172.18.0.1/16 proto tcp to ${{ vars.HOST_IP }} port 443;
ufw enable"
- name: Start docker on server
run: |
Expand Down

0 comments on commit 8111acd

Please sign in to comment.