Skip to content
Snippets Groups Projects
Commit 23273df5 authored by Fabrice Schaub's avatar Fabrice Schaub
Browse files

removed comments

parent 73dc9507
No related branches found
Tags latest
No related merge requests found
Pipeline #7795 passed
......@@ -18,7 +18,7 @@ build:
- docker build -t "$IMAGE_NAME:$CI_COMMIT_REF_NAME" ./hellom210-docker
artifacts:
paths:
- ./hellom210-docker # Ensures built artifacts persist
- ./hellom210-docker
expire_in: 1 hour
push:
......@@ -26,9 +26,9 @@ push:
script:
- echo "Pushing Docker image..."
- docker push "$IMAGE_NAME:$CI_COMMIT_REF_NAME"
- docker push "$IMAGE_NAME:latest" # Push latest tag if needed
- docker push "$IMAGE_NAME:latest"
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_TAG' # Runs if a tag is created
- if: '$CI_COMMIT_TAG'
dependencies:
- build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment