Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #38 from Kites-Foundation/develop
Browse files Browse the repository at this point in the history
change for workflow
  • Loading branch information
dauntlessnomad authored Feb 20, 2021
2 parents 2bb3c5d + a993f50 commit 9da77c3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:latest
docker push $IMAGE_ID:$VERSION
docker push $IMAGE_ID --all-tags
deploy:
needs: push
runs-on: ubuntu-latest
Expand All @@ -62,16 +62,12 @@ jobs:
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
echo $IMAGE_ID
echo IMAGE_ID=$IMAGE_ID
docker stop munnar munnar1
docker rm munnar munnar1
docker pull $IMAGE_ID:latest
docker pull docker.pkg.github.com/kites-foundation/hellomunnar-api:latest
docker images
docker run -p 3600:3600 --name munnar --env-file /home/ubuntu/.env.list -d IMAGE_ID:latest
docker run -p 3601:3600 --name munnar1 --env-file /home/ubuntu/.env.list -d IMAGE_ID:latest
docker run -p 3600:3600 --name munnar --env-file /home/ubuntu/.env.list -d docker.pkg.github.com/kites-foundation/hellomunnar-api:latest
docker run -p 3601:3600 --name munnar1 --env-file /home/ubuntu/.env.list -d docker.pkg.github.com/kites-foundation/hellomunnar-api:latest
docker ps
echo "Latest Image Deployed"
sudo systemctl restart nginx
Expand Down

0 comments on commit 9da77c3

Please sign in to comment.