Skip to content

Commit

Permalink
updated action for docker to be installed while building image
Browse files Browse the repository at this point in the history
  • Loading branch information
MIKEINTOSHSYSTEMS committed Oct 20, 2024
1 parent e88f931 commit a66a289
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,20 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Deploy Docker Container
run: |
docker-compose pull && docker-compose up -d
# Optional: Cleanup unused images and containers
# - name: Cleanup Docker
# run: |
# docker system prune -f

# Uncomment the following step to deploy automatically to your server
#- name: SSH into Server and Pull Docker Image
# uses: appleboy/ssh-action@master
Expand Down

0 comments on commit a66a289

Please sign in to comment.