@@ -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