mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
Add moew docker tags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user