Merge pull request #74 from RGarrido03/70-finish-settings #42
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
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
name: Deploy to DETI machine | |
steps: | |
- name: Clean workspace | |
uses: AutoModality/[email protected] | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- name: Down containers | |
run: docker compose down | |
- name: Remove build caches | |
run: docker builder prune -a -f | |
- name: Up containers | |
run: docker compose -f compose.prod.yaml up --build -d | |
env: | |
RABBITMQ_DEFAULT_PASS: ${{secrets.RABBITMQ_DEFAULT_PASS}} | |
POSTGRES_PASSWORD: ${{secrets.POSTGRES_PASSWORD}} | |
DOCKER_INFLUXDB_INIT_PASSWORD: ${{secrets.DOCKER_INFLUXDB_INIT_PASSWORD}} | |
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${{secrets.DOCKER_INFLUXDB_INIT_ADMIN_TOKEN}} | |
SPRING_SECURITY_JWT_SECRET: ${{secrets.SPRING_SECURITY_JWT_SECRET}} |