Skip to content

Commit

Permalink
feat: add cd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobussacchini committed May 29, 2024
1 parent 702cb32 commit b43dd8f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/develop-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,16 @@ jobs:
docker-repository-name: kokos-node-workshop
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
update-on-lab-environment:
needs: java-docker-release
runs-on: erbusco
steps:
- name: Update container on Kokos LAB (https://kokoslab.smeup.com)
uses: appleboy/[email protected]
with:
host: ${{ secrets.KOKOS_LAB_IP }}
username: smeup
password: ${{ secrets.LAB_SSH_PASSWORD }}
script: |
kubectl rollout restart deploy/me-node-workshop
2 changes: 1 addition & 1 deletion src/services/JsonPlaceholderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import axios from 'axios';

async function fetchUsers() {
try {
const response = await axios.get('https://jsonplaceholder.typicode.com/users');
const response = await axios.get('https://jsonplaceholder.typicode.com/users?userId=1');
return response.data;
} catch (error) {
console.error('Error fetching data from API:', error);
Expand Down

0 comments on commit b43dd8f

Please sign in to comment.