Skip to content

Commit

Permalink
Update binarycoffee api ci/cd configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Gonzalez committed Aug 20, 2024
1 parent 4c627b4 commit 6a5b341
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
node-version: [ 16.19.1 ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache project node-modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: 'node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -46,16 +46,16 @@ jobs:
node-version: [ 16.x ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache project node-modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: 'node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -79,7 +79,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Create env variables file
run: ./create_env_file.sh
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
BOT_NOTIFICATION_TOKEN: ${{ secrets.BOT_NOTIFICATION_TOKEN }}

- name: Copy project to the hosting
uses: easingthemes/ssh-deploy@v2.1.5
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
ARGS: "-rltgoDzvO --delete"
Expand All @@ -134,7 +134,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Create env variables file
run: ./create_env_file.sh
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
BOT_NOTIFICATION_TOKEN: ${{ secrets.BOT_NOTIFICATION_TOKEN }}

- name: Copy project to the hosting
uses: easingthemes/ssh-deploy@v2.1.5
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.PROD__SERVER_SSH_KEY }}
ARGS: "-rltgoDzvO --delete"
Expand Down

0 comments on commit 6a5b341

Please sign in to comment.