Skip to content

Commit a83ca5c

Browse files
test: k3s deploy action
1 parent f5700ce commit a83ca5c

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/k3s.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
spec:
149149
containers:
150150
- name: ${{ env.MODULE }}
151-
image: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}/${{ env.MODULE }}:latest
151+
image: ${{ env.REGISTRY }}/${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ needs.setup.outputs.sha_short }}
152152
ports:
153153
- containerPort: 8080
154154
env:
@@ -194,21 +194,20 @@ jobs:
194194
name: ${{ env.MODULE }}-ingress
195195
namespace: default
196196
annotations:
197-
kubernetes.io/ingress.class: 'traefik'Q
197+
kubernetes.io/ingress.class: traefik
198198
spec:
199199
rules:
200-
- host: stgapi.layerapp.io
201-
http:
202-
paths:
203-
- path: /
204-
pathType: Prefix
205-
backend:
206-
service:
207-
name: layer-api-service
208-
port:
209-
number: 80
200+
- host: stgapi.layerapp.io
201+
http:
202+
paths:
203+
- path: /
204+
pathType: Prefix
205+
backend:
206+
service:
207+
name: ${{ env.MODULE }}-service
208+
port:
209+
number: 80
210210
EOF
211-
212211
- name: Deploy to K3s
213212
run: |
214213
kubectl apply -f deployment.yaml

0 commit comments

Comments
 (0)