forked from 0xWheatyz/SPARC
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
|
- name: Checkout code
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
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 }}
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Determine image tags
|
- name: Determine image tags
|
||||||
id: tags
|
id: tags
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
REGISTRY="gitea.leeworks.dev"
|
REGISTRY="gitea.gitea.svc.cluster.local"
|
||||||
REPO_OWNER="${{ gitea.repository_owner }}"
|
REPO_OWNER="${{ gitea.repository_owner }}"
|
||||||
REPO_NAME="${{ gitea.repository }}"
|
REPO_NAME="${{ gitea.repository }}"
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
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
|
- name: Build and push API image
|
||||||
shell: sh
|
shell: sh
|
||||||
@@ -90,14 +90,14 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
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 }}
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Determine image tags
|
- name: Determine image tags
|
||||||
id: tags
|
id: tags
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
REGISTRY="gitea.leeworks.dev"
|
REGISTRY="gitea.gitea.svc.cluster.local"
|
||||||
REPO_OWNER="${{ gitea.repository_owner }}"
|
REPO_OWNER="${{ gitea.repository_owner }}"
|
||||||
REPO_NAME="${{ gitea.repository }}"
|
REPO_NAME="${{ gitea.repository }}"
|
||||||
|
|
||||||
@@ -130,7 +130,7 @@ jobs:
|
|||||||
- name: Login to registry
|
- name: Login to registry
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
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
|
- name: Build and push frontend image
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|||||||
Reference in New Issue
Block a user