Skip to content

Commit

Permalink
Build image locally on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriakos committed Jul 30, 2021
1 parent 391a7c3 commit f78eb7c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
23 changes: 15 additions & 8 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,28 @@ echo "Syntax:
Deploying: $PRJ
"


# use ./* to skip hidden files like .git
rsync -avuz ./* ${HOST}:/opt/web/${PRJ}/

INSTALL="cd /opt/web/$PRJ &&
docker-compose build &&
docker-compose up -d --force-recreate &&
mv ${PRJ}.conf /etc/nginx/virtual-hosts/ &&
systemctl restart nginx"
ssh ${HOST} mkdir -p /opt/web/${PRJ}
scp docker-compose.yml ${PRJ}.conf ${HOST}:/opt/web/${PRJ}/
rsync -avuz ./assets/ ${HOST}:/opt/web/${PRJ}/assets

if $ONLY_NGINX
then
INSTALL="cd /opt/web/$PRJ &&
mv ${PRJ}.conf /etc/nginx/virtual-hosts/ &&
systemctl restart nginx"
else

docker-compose build
docker-compose push

INSTALL="cd /opt/web/$PRJ &&
chown -R 82 assets
docker-compose pull &&
docker-compose up -d --force-recreate &&
mv ${PRJ}.conf /etc/nginx/virtual-hosts/ &&
systemctl restart nginx"

fi

ssh $HOST "bash -c '$INSTALL'"
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
version: '3.2'
services:
frontend:
image: docker.services.kindstudios.gr/wen-pm:latest
restart: always
build:
context: .
Expand Down
7 changes: 5 additions & 2 deletions elm/src/Static/Events.elm
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ milestones =
, ME.Milestone <| ME.TheMilestone "Alonzo SPO Testnet" (Just 1622307600) True alonzoSpoNetUrl <| Just "Private testnet for Goguen. Select SPOs and IOHK partners test the first version of the alonzo node."

--, ME.Milestone <| ME.TheMilestone "Alonzo Pioneers Testnet" (Just ) False Nothing <| Just "The first public testnet for Goguen. The first batch of around 1k external Alonzo pioneers will get access to the Pioneers Testnet where the functionalities of Alonzo will be tested in close collaboration with IOHK."
, ME.Milestone <| ME.TheMilestone "Alonzo Feature Freeze" (Just 1625003091) False Nothing <| Just "We lock down the code, this is the big one! After 2+ months of rigorous testing in the private and pioneers testnets the codebase will have been ironed out. Now we freeze the codebase and run stress tests on the networks one more time to ensure everyting is rock sollid because next comes..."
, ME.Milestone <| ME.TheMilestone "Goguen" (Just 1627595091) False goguenUrl <| Just "The Alonzo HFC. Full Smart Contract functionality, Haskell and formally verified DAOs, ERC-20 importers on the Cardano mainnet"
--, ME.Milestone <| ME.TheMilestone "Alonzo Feature Freeze" (Just 1625003091) False Nothing <| Just "We lock down the code, this is the big one! After 2+ months of rigorous testing in the private and pioneers testnets the codebase will have been ironed out. Now we freeze the codebase and run stress tests on the networks one more time to ensure everyting is rock sollid because next comes..."
, ME.Milestone <| ME.TheMilestone "Alonzo White" (Just 1625608800) True goguenUrl <| Just "Invite only testnet to test the Alonzo HFC, Full Smart Contract functionality, continuing the evolution of Alonzo blue"
, ME.Milestone <| ME.TheMilestone "Alonzo Light Purple" Nothing False goguenUrl <| Just "Prep for scaling the testnet from 100s to 1000s of SPOs and 1000s of developers"
, ME.Milestone <| ME.TheMilestone "Alonzo Light Purple" Nothing False goguenUrl <| Just "Prep for scaling the testnet from 100s to 1000s of SPOs and 1000s of developers"
, ME.Milestone <| ME.TheMilestone "Goguen" Nothing False goguenUrl <| Just "The Alonzo HFC. Full Smart Contract functionality, Haskell and formally verified DAOs, ERC-20 importers on the Cardano mainnet"
, ME.Milestone <| ME.TheMilestone "Pergamon" Nothing True pergamonUrl <| Just "An experiment about human collaboration and NFTs"
, ME.Milestone <| ME.TheMilestone "Voltaire" Nothing True Nothing Nothing
, ME.Milestone <| ME.TheMilestone "Basho" Nothing True Nothing Nothing
Expand Down

0 comments on commit f78eb7c

Please sign in to comment.