We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0894a18 commit f20130fCopy full SHA for f20130f
.github/workflows/deploy-staging.yml
@@ -19,13 +19,21 @@ jobs:
19
key: ${{ secrets.AWS_EC2_PRIVATE_KEY }}
20
port: 22
21
script: |
22
- DOCKER_BUILDKIT=1
+ echo "👀 deploy started"
23
+ echo " "
24
+ echo "🔨 updating repository"
25
26
+ cd /home/ubuntu/repository
27
eval `ssh-agent -s`
28
ssh-add .ssh/github_action
- cd /home/ubuntu/repository
29
git checkout develop -f
30
git fetch
31
git pull
- docker build -t spring-crud-api:development .
32
+ echo "📦 building docker image"
33
34
+ DOCKER_BUILDKIT=1 docker build -t spring-crud-api:development .
35
+ echo "🚨 restarting container"
36
37
cd /home/ubuntu
- docker-compose up -d --build
38
+ docker-compose up -d --force-recreate
39
+ echo "🚀 deploy finished"
0 commit comments