Skip to content

Commit e9df415

Browse files
committed
ci: update
1 parent a36667b commit e9df415

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

.github/workflows/core-release.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717

18+
- name: Login to DockerHub
19+
uses: docker/login-action@v3
20+
with:
21+
logout: true
22+
registry: ${{ secrets.REGISTRY_URI }}
23+
username: ${{ secrets.REGISTRY_USERNAME }}
24+
password: ${{ secrets.REGISTRY_PASSWORD }}
25+
1826
- name: Docker meta
1927
id: meta
2028
uses: docker/metadata-action@v5
2129
with:
22-
images: harbor.ncuos.com/genius-auth/core
30+
images: ${{ secrets.REGISTRY_URI }}/genius-auth/core
2331

2432
- name: Build Docker Image and Push
2533
uses: docker/build-push-action@v6
@@ -34,20 +42,11 @@ jobs:
3442
needs: build-docker-image
3543
runs-on: self-hosted
3644
steps:
37-
# - name: Update Dev Deployment
38-
# uses: MultiMx/K8sSetImageAction@v0.5
39-
# with:
40-
# backend: 'https://rancher.ncuhome.club'
41-
# token: ${{ secrets.CATTLE_TOKEN_LOCAL }}
42-
# namespace: 'genius-auth'
43-
# workload: 'core'
44-
# image: ${{ needs.build-docker-image.outputs.image_tag }}
45-
4645
- name: Update Prod Deployment
4746
uses: MultiMx/K8sSetImageAction@v0.5
4847
if: ${{ !contains(github.ref, 'beta') }}
4948
with:
50-
backend: 'https://rancher.ncuos.com'
49+
backend: ${{ secrets.CATTLE_URL }}
5150
token: ${{ secrets.CATTLE_TOKEN }}
5251
namespace: 'genius-auth'
5352
workload: 'core'

.github/workflows/ssh-release.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v4
1616

17+
- name: Login to DockerHub
18+
uses: docker/login-action@v3
19+
with:
20+
logout: true
21+
registry: ${{ secrets.REGISTRY_URI }}
22+
username: ${{ secrets.REGISTRY_USERNAME }}
23+
password: ${{ secrets.REGISTRY_PASSWORD }}
24+
1725
- name: Docker meta
1826
id: meta
1927
uses: docker/metadata-action@v5
2028
with:
21-
images: harbor.ncuos.com/genius-auth/ssh-server
29+
images: ${{ secrets.REGISTRY_URI }}/genius-auth/ssh-server
2230

2331
- name: Build Docker Image and Push
2432
uses: docker/build-push-action@v6
@@ -33,20 +41,11 @@ jobs:
3341
needs: build-docker-image
3442
runs-on: self-hosted
3543
steps:
36-
# - name: Update Dev Deployment
37-
# uses: MultiMx/K8sSetImageAction@v0.5
38-
# with:
39-
# backend: 'https://rancher.ncuhome.club'
40-
# token: ${{ secrets.CATTLE_TOKEN_LOCAL }}
41-
# namespace: 'genius-auth'
42-
# workload: 'ssh-server'
43-
# image: ${{ needs.build-docker-image.outputs.image_tag }}
44-
4544
- name: Update Prod Deployment
4645
uses: MultiMx/K8sSetImageAction@v0.5
4746
if: ${{ !contains(github.ref, 'beta') }}
4847
with:
49-
backend: 'https://rancher.ncuos.com'
48+
backend: ${{ secrets.CATTLE_URL }}
5049
token: ${{ secrets.CATTLE_TOKEN }}
5150
namespace: 'genius-auth'
5251
workload: 'ssh-server'

0 commit comments

Comments
 (0)