Skip to content

Commit 3daecb3

Browse files
author
marci
committed
fix: Hinzufügung eines Schrittes zur Erstellung eines initialen Tags im CI/CD-Workflow
- Implementierung eines Befehls zur Erstellung eines initialen Tags (v0.1.0), falls keine Tags vorhanden sind. - Sicherstellung, dass der Tag erfolgreich zum Remote-Repository gepusht wird. Diese Änderungen verbessern die Versionierung im CI/CD-Prozess.
1 parent c76f1fd commit 3daecb3

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,5 +262,10 @@ jobs:
262262
run: |
263263
git config --global user.name "github-actions[bot]"
264264
git config --global user.email "github-actions[bot]@users.noreply.github.com"
265+
# Create an initial tag if no tags are present
266+
if ! git describe --tags --abbrev=0; then
267+
git tag v0.1.0
268+
git push origin v0.1.0
269+
fi
265270
semantic-release publish
266271
# Finish

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Use an official Python runtime as a parent image
2+
FROM python:3.9-slim
3+
4+
# Set the working directory in the container
5+
WORKDIR /app
6+
7+
# Copy the current directory contents into the container at /app
8+
COPY . /app/
9+
10+
# Install any needed packages specified in requirements.txt
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
# Make port 80 available to the world outside this container
14+
# (If your app uses a different port, change it here)
15+
# EXPOSE 80
16+
17+
# Define environment variable
18+
# ENV NAME World
19+
20+
# Run bash_script_maker.py when the container launches
21+
ENTRYPOINT ["python", "bash_script_maker.py"]

0 commit comments

Comments
 (0)