Test CI
This commit is contained in:
@@ -26,12 +26,13 @@ jobs:
|
||||
|
||||
- name: Check for changed files
|
||||
id: filter
|
||||
shell: bash # Explicitly specify bash
|
||||
run: |
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||
# If manually triggered, build both
|
||||
echo "backend=true" >> $GITHUB_OUTPUT
|
||||
echo "frontend=true" >> $GITHUB_OUTPUT
|
||||
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
||||
elif [ "${{ github.ref }}" = refs/tags/* ]; then
|
||||
# If it's a tag, build both
|
||||
echo "backend=true" >> $GITHUB_OUTPUT
|
||||
echo "frontend=true" >> $GITHUB_OUTPUT
|
||||
@@ -59,6 +60,7 @@ jobs:
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
# Rest of your backend job...
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -74,8 +76,9 @@ jobs:
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
shell: bash # Explicitly specify bash
|
||||
run: |
|
||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
||||
if [ "$GITHUB_REF" = refs/tags/* ]; then
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
else
|
||||
VERSION=latest
|
||||
@@ -109,6 +112,7 @@ jobs:
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
# Rest of your frontend job...
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -124,8 +128,9 @@ jobs:
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
shell: bash # Explicitly specify bash
|
||||
run: |
|
||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
||||
if [ "$GITHUB_REF" = refs/tags/* ]; then
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
else
|
||||
VERSION=latest
|
||||
|
||||
@@ -8,7 +8,7 @@ import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
logger.info(f"Starting app")
|
||||
logger.info(f"Starting app!")
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
version=settings.VERSION,
|
||||
|
||||
Reference in New Issue
Block a user