Skip to content

Back to collinlucke username #17

Back to collinlucke username

Back to collinlucke username #17

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: Create .env File
run: echo "ATLAS_DB_PASSWORD=${{ secrets.ATLAS_DB_PASSWORD }}" >> .env
- name: Login to Docker Hub
run: docker login -u ${{secrets.DOCKER_USERNAME}} -p ${{secrets.DOCKER_PASSWORD}}
- name: Build Docker Image
run: docker build -t collinlucke/baphomet-server .
- name: Publish Image to Docker Hub
run: docker push collinlucke/baphomet-server:latest
deploy:
needs: build
runs-on: self-hosted
steps:
- name: Pull Image from Docker Hub
run: docker pull collinlucke/baphomet-server:latest
- name: Delete Old Container
run: docker rm -f baphomet-server-container
- name: Run Docker Container
run: docker run -d -p 5050:5050 --name baphomet-server-container collinlucke/baphomet-server