Skip to content

Commit

Permalink
Ignore deploy production
Browse files Browse the repository at this point in the history
  • Loading branch information
o.mohkamkar committed Mar 4, 2024
1 parent a522b4e commit e94369a
Showing 1 changed file with 24 additions and 27 deletions.
51 changes: 24 additions & 27 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
#name: Deploy to Production
#
#on:
# push:
# branches:
# - master
# pull_request:
# branches:
# - master
#
#jobs:
# deploy:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Set up JDK 17
# uses: actions/setup-java@v4
# with:
# java-version: '17'
# distribution: 'temurin'
#
# - name: Deploy to production
# run: |
# ssh -i ${{ secrets.SSH_KEY }} ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} "cd /home/omidmk/iam-api && docker-compose pull && docker-compose up -d"
name: Deploy to Production

on:
push:
branches-ignore:
- '*'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Deploy to production
run: |
ssh -i ${{ secrets.SSH_KEY }} ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} "cd /home/omidmk/iam-api && docker-compose pull && docker-compose up -d"

0 comments on commit e94369a

Please sign in to comment.