Skip to content

Fix PUBLIC_MODE env variable #6

Fix PUBLIC_MODE env variable

Fix PUBLIC_MODE env variable #6

name: Build Blumy-Server
on:
push:
branches:
- main
paths:
- "Blumy-Server/**"
- ".github/workflows/build.blumy-server.workflow.yml"
pull_request:
branches:
- main
paths:
- "Blumy-Server/**"
jobs:
test-playwright:
uses: ./.github/workflows/test.playwright.blumy-server.workflow.yml
docker_publish:
runs-on: "ubuntu-20.04"
needs: ["test-playwright"]
steps:
- name: Extract branch name
shell: bash
run: |
branch_name="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
branch_name=$(echo "$branch_name" | sed 's/\//_/g')
echo "branch=${branch_name}" >> $GITHUB_OUTPUT
id: extract_branch
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/push-to-ghcr
- name: Build and publish a Docker image for ${{ github.repository }}
uses: Dennis960/push-to-ghcr@master
with:
image_tag: ${{ steps.extract_branch.outputs.branch }}.${{ github.run_number }},${{ steps.extract_branch.outputs.branch }}.latest
image_name: ${{ github.repository }}/server
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: Blumy-Server/Dockerfile.build
context: Blumy-Server