Skip to content

fix: update Deployment stage in Jenkinsfile to use withCredentials fo… #17

fix: update Deployment stage in Jenkinsfile to use withCredentials fo…

fix: update Deployment stage in Jenkinsfile to use withCredentials fo… #17

Workflow file for this run

name: Build and deploy to an VM
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Copy Repository
uses: actions/checkout@v4
- name: 'Create env file'
run: |
touch .env
echo "NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }}" >> .env
cat .env
- name: Running Docker Compose
run: docker compose up -d --build