Skip to content

fix: CI/CD config

fix: CI/CD config #11

Workflow file for this run

name: Build Docker image and push it to Docker Hub
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '24.x'
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{ secrets.DOCKER_USERNAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
logout: true
push: true
tags: kttrez/symfi-api:latest
- name: Deploy to Render.com
run: curl -X GET ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
on:
pull_request:
branches:
- master
types:
- closed