Remove unnecessary files
هذا الالتزام موجود في:
@@ -27,14 +27,33 @@ jobs:
|
||||
run: |
|
||||
docker push registry.ghaymah.systems/my-api:${{ github.sha }}
|
||||
|
||||
deploy-production:
|
||||
deploy-staging:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
environment:
|
||||
name: staging
|
||||
|
||||
steps:
|
||||
- name: Deploy to Staging
|
||||
run: |
|
||||
echo "Deploying image ${{ github.sha }} to staging..."
|
||||
# ghaymah deploy my-api-staging --image registry.ghaymah.systems/my-api:${{ github.sha }}
|
||||
|
||||
deploy-production:
|
||||
needs: deploy-staging
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# This "environment: production" line by itself does NOT block the job.
|
||||
# The manual approval only happens if you also configure, on GitHub:
|
||||
# Settings -> Environments -> production -> Required reviewers
|
||||
# Add yourself (or a teammate) as a required reviewer there.
|
||||
# Without that step, this environment tag is just a label.
|
||||
environment:
|
||||
name: production
|
||||
|
||||
steps:
|
||||
- name: Deploy to Production
|
||||
run: |
|
||||
echo "Deploying application to production..."
|
||||
echo "Deploying image ${{ github.sha }} to production..."
|
||||
# ghaymah deploy my-api --image registry.ghaymah.systems/my-api:${{ github.sha }}
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم