revert to previous docker build file

This commit is contained in:
Saumya 2025-08-29 14:41:25 +05:30
parent 40b1c59212
commit 9f62d0ea6a
1 changed files with 1 additions and 13 deletions

View File

@ -6,8 +6,6 @@ on:
- main
- PRODUCTION
workflow_dispatch:
repository_dispatch:
types: [production-updated]
permissions:
contents: read
@ -18,21 +16,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'repository_dispatch' && 'PRODUCTION' || github.ref }}
- name: Get tag name
shell: bash
run: |
echo "Event name: ${{ github.event_name }}"
echo "Current ref: ${{ github.ref }}"
echo "Branch: ${GITHUB_REF#refs/heads/}"
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
echo "Triggered by repository dispatch - setting prod environment"
echo "branch=prod" >> $GITHUB_OUTPUT
echo "environment=prod" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_REF#refs/heads/}" == "main" ]]; then
if [[ "${GITHUB_REF#refs/heads/}" == "main" ]]; then
echo "branch=latest" >> $GITHUB_OUTPUT
echo "environment=staging" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_REF#refs/heads/}" == "PRODUCTION" ]]; then