--
This commit is contained in:
parent
d6c6bd6919
commit
f4f618b552
@ -7,21 +7,14 @@ on:
|
|||||||
- 'main'
|
- 'main'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build-Image:
|
CreateImage:
|
||||||
runs-on: skeris
|
runs-on: [skeris]
|
||||||
steps:
|
uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p
|
||||||
- name: Check out repository code
|
with:
|
||||||
uses: https://gitea.pena/PenaDevops/actions.git/checkout@v1
|
runner: skeris
|
||||||
- run: podman login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_PASSWORD }} gitea.pena
|
secrets:
|
||||||
- run: apk add bind-tools && dig gitea.pena
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||||
- name: set lower case repository
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
run: |
|
|
||||||
REPO=$(echo "$REPOSITORY" | tr '[:upper:]' '[:lower:]') && echo "REPOSITORY_LC=${REPO}" >>${GITEA_ENV}
|
|
||||||
env:
|
|
||||||
REPOSITORY: '${{ gitea.repository }}'
|
|
||||||
- run: podman system prune -a -f
|
|
||||||
- run: podman build -m 1g -t gitea.pena/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }} .
|
|
||||||
- run: podman push gitea.pena/${{ env.REPOSITORY_LC }}/${{ gitea.ref_name }}:${{ gitea.run_id }}
|
|
||||||
DeployService:
|
DeployService:
|
||||||
runs-on: [frontprod]
|
runs-on: [frontprod]
|
||||||
needs: CreateImage
|
needs: CreateImage
|
||||||
|
1
.npmrc
Normal file
1
.npmrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
@frontend:registry=http://gitea.pena/api/packages/skeris/npm/
|
2
.yarnrc
2
.yarnrc
@ -1,2 +0,0 @@
|
|||||||
"@frontend:registry" "https://penahub.gitlab.yandexcloud.net/api/v4/packages/npm/"
|
|
||||||
"@frontend:registry" "https://penahub.gitlab.yandexcloud.net/api/v4/packages/npm/"
|
|
Loading…
Reference in New Issue
Block a user