Skip to content

Build was choking on the intermediate cert #41

Build was choking on the intermediate cert

Build was choking on the intermediate cert #41

Workflow file for this run

name: Deploy Baphomet Server
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Set Environment Variables
env:
ATLAS_DB_PASSWORD: ${{ secrets.ATLAS_DB_PASSWORD }}
ATLAS_DB_USERNAME: ${{ secrets.ATLAS_DB_USERNAME }}
ATLAS_CLUSTER: ${{ secrets.ATLAS_CLUSTER }}
ATLAS_DB: ${{ secrets.ATLAS_DB }}
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
REFRESH_TOKEN_SECRET: ${{ secrets.REFRESH_TOKEN_SECRET }}
run: |
echo "ATLAS_DB_PASSWORD=${ATLAS_DB_PASSWORD}" >> ~/.env
echo "ATLAS_DB_USERNAME=${ATLAS_DB_USERNAME}" >> ~/.env
echo "ATLAS_CLUSTER=${ATLAS_CLUSTER}" >> ~/.env
echo "ATLAS_DB=${ATLAS_DB}" >> ~/.env
echo "ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}" >> ~/.env
echo "REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}" >> ~/.env
- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
- name: Login to Docker Hub
run: docker login -u ${{secrets.DOCKER_USERNAME}} -p ${{secrets.DOCKER_PASSWORD}}
- name: Build and Push Docker Images
run: |
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml push
deploy:
needs: build
runs-on: self-hosted
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Pull Image from Docker Hub
run: docker-compose -f docker-compose.yml pull
- name: Delete Old Container
run: docker rm -f baphomet-server-container
- name: Run Docker Container
run: docker-compose -f docker-compose.yml up -d