This commit is contained in:
@@ -18,8 +18,8 @@ jobs:
|
||||
TAG=${{ gitea.sha }}
|
||||
ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
|
||||
docker build \
|
||||
-t mts.dgnr.us:5000/${{ gitea.repository }} \
|
||||
-t mts.dgnr.us:5000/${{ gitea.repository }}:$TAG --push \
|
||||
-t registry.neko-piranha.ts.net/${{ gitea.repository }} \
|
||||
-t registry.neko-piranha.ts.net/${{ gitea.repository }}:$TAG --push \
|
||||
. &
|
||||
curl -sLO "https://dl.k8s.io/release/v1.35.0/bin/linux/${ARCH}/kubectl" &
|
||||
wait
|
||||
@@ -36,5 +36,5 @@ jobs:
|
||||
- name: Deploy to k3s
|
||||
run: |
|
||||
TAG=${{ gitea.sha }}
|
||||
kubectl set image deployment/enka-api enka-api=mts.dgnr.us:5000/${{ gitea.repository }}:$TAG -n enka
|
||||
kubectl set image deployment/enka-api enka-api=registry.neko-piranha.ts.net/${{ gitea.repository }}:$TAG -n enka
|
||||
kubectl rollout status deployment/enka-api -n enka --timeout=180s
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: enka-api
|
||||
image: mts.dgnr.us:5000/astral/api
|
||||
image: registry.neko-piranha.ts.net/astral/api
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
|
||||
Reference in New Issue
Block a user