Skip to content

Update deploy.yml

Update deploy.yml #10

Workflow file for this run

name: Deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
deploy:
environment: master
runs-on: dirigera-deploy
steps:
- uses: actions/checkout@v3
- name: Set environment variables
env:
DIRIGERA_TOKEN: ${{ secrets.DIRIGERA_TOKEN }}
DIRIGERA_IP: ${{ secrets.DIRIGERA_IP }}
run: envsubst < .env.sample > .env
- name: Build and deploy
run: docker compose down && docker image prune -f && docker compose up -d