File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 44 # Manual trigger with options
55 workflow_dispatch :
66 inputs :
7+ git_ref :
8+ description : ' Git Ref (branch or tag) to deploy'
9+ required : true
10+ default : ' main'
711 run_migrations :
812 description : ' Run database migrations before deployment'
913 type : boolean
3741 steps :
3842 - name : Checkout code
3943 uses : actions/checkout@v4
44+ with :
45+ ref : ${{ github.event.inputs.git_ref }}
4046
4147 - name : Configure AWS credentials
4248 uses : aws-actions/configure-aws-credentials@v4
@@ -165,6 +171,7 @@ jobs:
165171 echo "🌐 Application URL: http://${{ steps.get-ip.outputs.public_ip }}:8000/"
166172 echo "🔐 Login URL: http://${{ steps.get-ip.outputs.public_ip }}:8000/accounts/login/"
167173 echo ""
174+ echo "📦 Deployed Ref: ${{ github.event.inputs.git_ref }}"
168175 echo "📊 ECS Cluster: ${{ env.ECS_CLUSTER }}"
169176 echo "🖥️ Web Service: ${{ env.ECS_WEB_SERVICE }}"
170177 echo "⚙️ Worker Service: ${{ env.ECS_WORKER_SERVICE }}"
You can’t perform that action at this time.
0 commit comments