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