|
6 | 6 | - '*' |
7 | 7 |
|
8 | 8 | env: |
9 | | - IMAGE: rancher/hyperkube |
| 9 | + IMAGE: rancher/rke-extended-life/hyperkube |
10 | 10 |
|
11 | 11 | jobs: |
12 | 12 | build-push-images: |
@@ -43,13 +43,15 @@ jobs: |
43 | 43 | uses: rancher-eio/read-vault-secrets@main |
44 | 44 | with: |
45 | 45 | secrets: | |
46 | | - secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ; |
47 | | - secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD |
| 46 | + secret/data/github/repo/${{ github.repository }}/registry-endpoint/credentials token | REGISTRY_ENDPOINT ; |
| 47 | + secret/data/github/repo/${{ github.repository }}/prime-registry/rancher/rke-extended-life/credentials username | REGISTRY_USERNAME ; |
| 48 | + secret/data/github/repo/${{ github.repository }}/prime-registry/rancher/rke-extended-life/credentials password | REGISTRY_PASSWORD |
48 | 49 | - name: Login to Docker Hub |
49 | 50 | uses: docker/login-action@v3 |
50 | 51 | with: |
51 | | - username: ${{ env.DOCKER_USERNAME }} |
52 | | - password: ${{ env.DOCKER_PASSWORD }} |
| 52 | + registry: ${{ env.REGISTRY_ENDPOINT }} |
| 53 | + username: ${{ env.REGISTRY_USERNAME }} |
| 54 | + password: ${{ env.REGISTRY_PASSWORD }} |
53 | 55 | - name: Build and push Docker image |
54 | 56 | id: build |
55 | 57 | uses: docker/build-push-action@v5 |
@@ -100,13 +102,15 @@ jobs: |
100 | 102 | uses: rancher-eio/read-vault-secrets@main |
101 | 103 | with: |
102 | 104 | secrets: | |
103 | | - secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ; |
104 | | - secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD |
| 105 | + secret/data/github/repo/${{ github.repository }}/registry-endpoint/credentials token | REGISTRY_ENDPOINT ; |
| 106 | + secret/data/github/repo/${{ github.repository }}/prime-registry/rancher/rke-extended-life/credentials username | REGISTRY_USERNAME ; |
| 107 | + secret/data/github/repo/${{ github.repository }}/prime-registry/rancher/rke-extended-life/credentials password | REGISTRY_PASSWORD |
105 | 108 | - name: Login to Docker Hub |
106 | 109 | uses: docker/login-action@v3 |
107 | 110 | with: |
108 | | - username: ${{ env.DOCKER_USERNAME }} |
109 | | - password: ${{ env.DOCKER_PASSWORD }} |
| 111 | + registry: ${{ env.REGISTRY_ENDPOINT }} |
| 112 | + username: ${{ env.REGISTRY_USERNAME }} |
| 113 | + password: ${{ env.REGISTRY_PASSWORD }} |
110 | 114 | - name: Create manifest list and push |
111 | 115 | working-directory: /tmp/digests |
112 | 116 | run: | |
|
0 commit comments