Skip to content

Commit

Permalink
Creating .env file in project directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanzella-techamz committed Oct 2, 2024
1 parent 1a7f6c0 commit ff41993
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
- name: Deploy files
run: rsync -avh --exclude=".[!.]*" * srv:/root/${{ github.event.repository.name }}

- name: Create .env file
run: >
ssh srv '
echo "DOMAIN_NAME=${{ secrets.DOMAIN_NAME }}" > "${{ github.event.repository.name }}/.env"
'
- name: Create Docker network if it does not exist
run: ssh srv 'if docker network ls --format "{{.Name}}" | grep -q traefik-network; then echo "Network already exists"; else docker network create traefik-network;fi'

Expand Down

0 comments on commit ff41993

Please sign in to comment.