Add moew docker tags

This commit is contained in:
2024-09-08 23:15:40 +10:00
parent 0a01f4a51d
commit f5efbf3786
4 changed files with 39 additions and 15 deletions
+6 -3
View File
@@ -38,8 +38,11 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: |-
${{ steps.meta.outputs.tags }}
ghcr.io/wahyd4/links:1.0.${{ github.run_number }}
labels: |-
${{ steps.meta.outputs.labels }}
- name: Deploy to Kubernetes
uses: wahyd4/kubectl-helm-action@master
@@ -48,6 +51,6 @@ jobs:
with:
args: |-
# Update the deployment.yaml with the new image tag
sed -i 's|image: .*|image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}|' k8s/deployment.yaml
sed -i 's|image: .*|image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:1.0.${{ github.run_number }}|' k8s/deployment.yaml
# Apply Kubernetes manifests
kubectl apply -n apps -f k8s/deployment.yaml