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