plz 2
This commit is contained in:
@@ -18,7 +18,7 @@ concurrency:
|
||||
# self-hosted → host runner ← docker build/push/deploy runs here
|
||||
#
|
||||
# Local Nexus:
|
||||
# Docker registry → mirrors.soroushasadi.com (group: pull | host: push)
|
||||
# Docker registry → mirror.soroushasadi.com (group: pull | host: push)
|
||||
# NuGet → 171.22.25.73:8081/repository/nuget-group/
|
||||
#
|
||||
# Required Gitea secrets:
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
name: "CI · dotnet build"
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: mirrors.soroushasadi.com/dotnet/sdk:10.0
|
||||
image: mirror.soroushasadi.com/dotnet/sdk:10.0
|
||||
options: --add-host=gitea:host-gateway
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -64,8 +64,8 @@ jobs:
|
||||
runs-on: self-hosted
|
||||
env:
|
||||
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
|
||||
REGISTRY: mirrors.soroushasadi.com
|
||||
IMAGE: mirrors.soroushasadi.com/drsousan/api
|
||||
REGISTRY: mirror.soroushasadi.com
|
||||
IMAGE: mirror.soroushasadi.com/drsousan/api
|
||||
needs: [ci]
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
timeout-minutes: 20
|
||||
@@ -96,15 +96,15 @@ jobs:
|
||||
- name: Build image
|
||||
run: |
|
||||
docker compose build api
|
||||
docker tag mirrors.soroushasadi.com/drsousan/api:latest \
|
||||
mirrors.soroushasadi.com/drsousan/api:${{ github.sha }}
|
||||
docker tag mirror.soroushasadi.com/drsousan/api:latest \
|
||||
mirror.soroushasadi.com/drsousan/api:${{ github.sha }}
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
|
||||
- name: Push image to Nexus
|
||||
run: |
|
||||
docker push mirrors.soroushasadi.com/drsousan/api:latest
|
||||
docker push mirrors.soroushasadi.com/drsousan/api:${{ github.sha }}
|
||||
docker push mirror.soroushasadi.com/drsousan/api:latest
|
||||
docker push mirror.soroushasadi.com/drsousan/api:${{ github.sha }}
|
||||
|
||||
- name: Deploy
|
||||
run: docker compose up -d --no-deps api
|
||||
|
||||
Reference in New Issue
Block a user