ci: remove Nexus push step, build image locally only
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,8 +23,6 @@ concurrency:
|
||||
#
|
||||
# Required Gitea secrets:
|
||||
# ENV_FILE → contents of .env
|
||||
# REGISTRY_PASSWORD → Nexus admin password
|
||||
# REGISTRY_USER → Nexus username (usually: admin)
|
||||
# ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
jobs:
|
||||
@@ -87,25 +85,11 @@ jobs:
|
||||
env:
|
||||
ENV_FILE: ${{ secrets.ENV_FILE }}
|
||||
|
||||
- name: Login to Nexus registry
|
||||
run: echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY" -u "$REGISTRY_USER" --password-stdin
|
||||
env:
|
||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
docker compose build api
|
||||
docker tag mirror.soroushasadi.com/drsousan/api:latest \
|
||||
mirror.soroushasadi.com/drsousan/api:${{ github.sha }}
|
||||
run: docker compose build api
|
||||
env:
|
||||
DOCKER_BUILDKIT: 1
|
||||
|
||||
- name: Push image to Nexus
|
||||
run: |
|
||||
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