fix(ci): moved domain to internal dns name, hopefully runner respects that and this negates the 502 error when too many requests are sent to vps
This commit is contained in:
@@ -20,14 +20,14 @@ jobs:
|
||||
- name: Checkout code
|
||||
shell: sh
|
||||
run: |
|
||||
git clone https://gitea.leeworks.dev/${{ gitea.repository }}.git .
|
||||
git clone https://gitea.gitea.svc.cluster.local/${{ gitea.repository }}.git .
|
||||
git checkout ${{ gitea.sha }}
|
||||
|
||||
- name: Determine image tags
|
||||
id: tags
|
||||
shell: sh
|
||||
run: |
|
||||
REGISTRY="gitea.leeworks.dev"
|
||||
REGISTRY="gitea.gitea.svc.cluster.local"
|
||||
REPO_OWNER="${{ gitea.repository_owner }}"
|
||||
REPO_NAME="${{ gitea.repository }}"
|
||||
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
- name: Login to registry
|
||||
shell: sh
|
||||
run: |
|
||||
echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.leeworks.dev -u "${{ gitea.actor }}" --password-stdin
|
||||
echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.gitea.svc.cluster.local -u "${{ gitea.actor }}" --password-stdin
|
||||
|
||||
- name: Build and push API image
|
||||
shell: sh
|
||||
@@ -90,14 +90,14 @@ jobs:
|
||||
- name: Checkout code
|
||||
shell: sh
|
||||
run: |
|
||||
git clone https://gitea.leeworks.dev/${{ gitea.repository }}.git .
|
||||
git clone https://gitea.gitea.svc.cluster.local/${{ gitea.repository }}.git .
|
||||
git checkout ${{ gitea.sha }}
|
||||
|
||||
- name: Determine image tags
|
||||
id: tags
|
||||
shell: sh
|
||||
run: |
|
||||
REGISTRY="gitea.leeworks.dev"
|
||||
REGISTRY="gitea.gitea.svc.cluster.local"
|
||||
REPO_OWNER="${{ gitea.repository_owner }}"
|
||||
REPO_NAME="${{ gitea.repository }}"
|
||||
|
||||
@@ -130,7 +130,7 @@ jobs:
|
||||
- name: Login to registry
|
||||
shell: sh
|
||||
run: |
|
||||
echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.leeworks.dev -u "${{ gitea.actor }}" --password-stdin
|
||||
echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.gitea.svc.cluster.local -u "${{ gitea.actor }}" --password-stdin
|
||||
|
||||
- name: Build and push frontend image
|
||||
shell: sh
|
||||
|
||||
Reference in New Issue
Block a user