push to registry

This commit is contained in:
2025-09-09 15:18:58 -04:00
parent f8f5f95a34
commit 9755bd87b2
4 changed files with 166 additions and 9 deletions
+7 -9
View File
@@ -42,18 +42,16 @@ jobs:
echo "Building Docker image..."
docker build -t nfoguard:latest .
docker tag nfoguard:latest nfoguard:${{ github.sha }}
docker tag nfoguard:latest gitea.skalas.org/jskala/nfoguard:latest
docker tag nfoguard:latest gitea.skalas.org/jskala/nfoguard:${{ github.sha }}
echo "Docker image built successfully"
- name: Push to registry (if main branch)
if: github.ref == 'refs/heads/main'
- name: Push to Gitea registry
run: |
echo "Pushing Docker image to registry..."
# Add your registry push commands here
# Examples:
# docker tag nfoguard:latest your-registry.com/nfoguard:latest
# docker push your-registry.com/nfoguard:latest
# docker push your-registry.com/nfoguard:${{ github.sha }}
echo "Image ready for deployment"
echo "Pushing to Gitea container registry..."
docker push gitea.skalas.org/jskala/nfoguard:latest
docker push gitea.skalas.org/jskala/nfoguard:${{ github.sha }}
echo "Images pushed successfully"
deploy:
needs: build