fix: remove redundant docker image removal commands in Jenkinsfile cl… #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |