diff --git a/.github/workflows/build_new.yml b/.github/workflows/build_new.yml index 5ade565..eaf51b9 100644 --- a/.github/workflows/build_new.yml +++ b/.github/workflows/build_new.yml @@ -42,8 +42,6 @@ jobs: - IMAGE_NAME: backend-aimingmedai BUILD_CONTEXT: ./app/backend DOCKERFILE: ./app/backend/Dockerfile - INTERMEDIATE_CONTAINER: builder - ARGS: "" # Default empty ARGS # Call the reusable workflow uses: ./.github/workflows/template_build.yml # Path to the reusable workflow file @@ -55,9 +53,5 @@ jobs: image_name: ${{ matrix.image_config.IMAGE_NAME }} build_context: ${{ matrix.image_config.BUILD_CONTEXT }} dockerfile: ${{ matrix.image_config.DOCKERFILE }} - # Provide default empty strings if matrix values might be null/undefined - intermediate_container: ${{ matrix.image_config.INTERMEDIATE_CONTAINER || '' }} - args: ${{ matrix.image_config.ARGS || '' }} - # Pass run-specific context needed for tagging build_id: ${{ github.run_id }} commit_sha: ${{ github.sha }} \ No newline at end of file diff --git a/.github/workflows/template_build.yml b/.github/workflows/template_build.yml index 49c5511..d2d36ea 100644 --- a/.github/workflows/template_build.yml +++ b/.github/workflows/template_build.yml @@ -22,14 +22,6 @@ on: dockerfile: required: true type: string - intermediate_container: - required: false # Optional input - type: string - default: '' - args: - required: false # Optional input - type: string - default: '' build_id: required: true type: string # Pass run_id as string @@ -148,8 +140,8 @@ jobs: # Pushes the final tags (build id, commit sha, latest) run: | echo "Pushing final image tags..." - docker push ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_build_id }} - docker push ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }} + # docker push ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_build_id }} + # docker push ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }} docker push ${{ steps.tags.outputs.image_repo_path }}:latest - name: Push Intermediate Image