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