Skip to content

Commit

Permalink
Update CI/CD pipeline (#10)
Browse files Browse the repository at this point in the history
* Add frontend-beta.yml workflow
* Add staging image
  • Loading branch information
jloh02 authored Feb 7, 2024
1 parent 089e0bb commit 83dc2ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/frontend-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
# Build
cd frontend
echo "${{secrets.SUDO_PASSWORD}}" | sudo -S bash ./build.sh
echo "${{ secrets.SUDO_PASSWORD }}" | sudo -S bash ./build.sh
cd ..
echo "${{secrets.SUDO_PASSWORD}}" | sudo docker-compose -f ./docker-compose.prod.yml up -d
echo "${{ secrets.SUDO_PASSWORD }}" | sudo docker-compose -f ./docker-compose.prod.yml up -d
# Restore changes
git stash pop
4 changes: 2 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:

## entry point for treeckle app containers
app-reverse-proxy:
image: jermytan/treeckle-reverse-proxy:latest
image: jermytan/treeckle-reverse-proxy:production
volumes:
- static-volume:/app/static
networks:
Expand All @@ -52,7 +52,7 @@ services:

## can only be accessed within frontend network
frontend-staging:
image: jermytan/treeckle-frontend:latest
image: jermytan/treeckle-frontend:staging
networks:
- frontend-beta
restart: always
Expand Down
2 changes: 1 addition & 1 deletion frontend/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ done < $env_file

echo $build_args

sudo docker build . -t jermytan/treeckle-frontend $build_args
sudo docker build . -t jermytan/treeckle-frontend:staging $build_args

0 comments on commit 83dc2ef

Please sign in to comment.