mirror of
https://github.com/Snigdha-OS/snigdhaos-docker.git
synced 2025-09-05 17:36:36 +02:00
🐛 fix: simplified docker tag
This commit is contained in:
7
.github/workflows/snigdhaos-docker.yml
vendored
7
.github/workflows/snigdhaos-docker.yml
vendored
@@ -56,5 +56,12 @@ jobs:
|
||||
- name: Tag Docker image with version
|
||||
run: |
|
||||
VERSION=$(git tag -l | tail -n 1 || echo "latest") # Get the latest tag or fallback to "latest"
|
||||
|
||||
# Ensure VERSION is not empty, default to "latest" if it's empty
|
||||
if [ -z "$VERSION" ]; then
|
||||
VERSION="latest"
|
||||
fi
|
||||
|
||||
# Tag and push the image
|
||||
docker tag ${{ secrets.DOCKERHUB_USERNAME }}/snigdhaos:latest ${{ secrets.DOCKERHUB_USERNAME }}/snigdhaos:${VERSION}
|
||||
docker push ${{ secrets.DOCKERHUB_USERNAME }}/snigdhaos:${VERSION}
|
||||
|
Reference in New Issue
Block a user